how to put azure webjob on hold with out deleting it?

Viewed 201

I am not able to find any options to put the azure webjob on hold , Currently we disable our jobs from "Task scheduler" whenever we have a deployment. But in Azure Webjob I cannot see an option to disable. I read from some old forums that we can only delete , then we need to publish again.

Can anybody advise on this? if we have deployed the job , to just hold for some hours or couple of days why we need to delete it?

thanks

1 Answers

You can add the below configuration setting to your web app to disable the Webjob.

WEBJOBS_STOPPED - Set this setting to 1 to disable running any job (will also stop all currently running jobs).

WEBJOBS_DISABLE_SCHEDULE - Set this to 1 to turn off all scheduled triggering. Unlike with WEBJOBS_STOPPED, WebJobs can still be manually invoked

For more information you can refer this github link .

Related