Stop azure deployed time triggered webjob

Deanna Delapasse 11 Reputation points
2019-12-23T18:02:28.717+00:00

I've read that the "proper" (debatable) way to stop a scheduled webjob is to get to scm and delete the settings.job file. However, my project is deployed as a zip through devops so I can't delete files. Trying gives 409.

I also can't delete the job. Portal tells me it's deleted, but it's not.

I've tried stopping the app service but the jobs keep running. What are the other options?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,008 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. xequence 6 Reputation points
    2019-12-23T19:46:42.957+00:00

    Adding an Application settings value of WEBJOB_STOPPED with a value of 1 to stop the job. Here is a reference article for webjobs, https://learn.microsoft.com/en-us/azure/app-service/webjobs-create

    Hope this helps and don't forget to mark answer if it helped you!


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.