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.
0 comments No comments
{count} votes

2 answers

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://dori-uw-1.kuma-moon.com/en-us/azure/app-service/webjobs-create

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


  2. Peter Midgley 1 Reputation point
    2025-12-12T11:05:18.93+00:00

    I believe the WEBJOBS_STOPPED and WEBJOBS_DISABLE_SCHEDULE only work in non-production deployment slots.

    You can access the settings.job file via azure portal, in the developer side menu option 'App Service editor(preview)' where your file is under app_data/Jobs/Triggered/yourwebjobappnamehere/Settings.job

    and maybe change it from

    {

    // Runs at 3:00 AM every week day

    "schedule": "0 0 3 * * 1-5"

    }

    to

    { // Runs at 3:00 AM every week day

    "disabled": true,

    "schedule": "0 0 3 * * 1-5"

    }

    0 comments No comments

Your answer

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