Azure Webjob触发两次 [英] Azure Webjob triggered twice

查看:74
本文介绍了Azure Webjob触发两次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于某些问题,我决定在部署webjobs时使用计划的触发器.

I used to use a scheduled trigger when deploying my webjobs, due to some problems I decided to use the settings.job with the onDemand trigger.

我的azure门户仅显示1个Web作业,但是在日志中我看到它每次运行两次.

My azure portal shows only 1 web job occurence, but in the log I can see it runs twice every time.

在我的 https://echtemaaltijd.scm.azurewebsites.net/api/webjobs页面,我看到每个webjob一个实例,当我查看调度程序日志URL时,我也看到它仅被触发一次.

In my https://echtemaaltijd.scm.azurewebsites.net/api/webjobs page, I see one instance per webjob, when I look at the scheduler log urls, I also see it's triggered only once.

为防止触发两次,我清除了设置时间表属性,因此只触发了一次. (这是上面两个Webjob的url中的当前情况)

To prevent from triggering twice, I cleared the settings schedule property, and as a result its triggered only once. (That is the current situation in above url for two webjobs)

以某种方式仍在触发旧的"计划Web作业,并且我不知道为什么会发生这种情况以及如何删除这些计划程序.

Somehow the "old" schedule webjob is still triggering, and I don't know why this happened and how I can delete these schedulers.

推荐答案

我认为您需要禁用/删除仍在运行中并正在调用WebJob的旧Azure Scheduler作业.您可以在此博客中找到更多详细信息.门户,以及Azure Scheduler/WebJobs的总体交互方式.停止Azure Scheduler作业后,就可以使用settings.job计划.

I think you need to go disable/delete your old Azure Scheduler Job that is still running invoking your WebJob. You can find more details in this blog on how to find that in the portal, and how Azure Scheduler / WebJobs interact in general. Once you stop the Azure Scheduler Job, you'll be able to use your settings.job schedule.

这篇关于Azure Webjob触发两次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆