Azure Webjob triggered twice

不羁的心 提交于 2019-12-11 00:18:27

问题


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.

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

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.

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)

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


回答1:


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.



来源:https://stackoverflow.com/questions/33790985/azure-webjob-triggered-twice

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!