Reputation: 1316
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.
Upvotes: 2
Views: 1871
Reputation: 13568
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.
Upvotes: 2