问题
Like many others I am enthusiastic about the lightweight WebJobs that can so easily be added to Azure Websites.
But I assumed one of the advantages with WebJobs was to easily modify the scheduling. When I tried I was surprised that there seems to be no way to do that. A deployed WebJob seems to be stuck with the initial scheduling.
Do I need to deploy new WebJobs just to modify the scheduling?
回答1:
To change the schedule, or to Modify the CRON value just use the App Service Editor to modify the settings.job
file;
By the time of writing, App Service Editor is still in preview but it will work.
In the settings.job
file amend the schedule in CRON value and will be reflected in the App's Web Job Dashboard.
The App Service Editor is available in App Service > Development Tools
App Service Editor (Preview)
回答2:
I finally found it. Scheduled WebJobs turn up under Scheduler in the main bar.
The Save button is not visible until you actually make a change.
回答3:
The answer is already provided, but I just want to add a further detail. I struggled to find the code for a webjob and also the setting.job file.
At the end I found it inside the App_Data/jobs/triggered folder of the containing webapp.
I hope it help anyway.
来源:https://stackoverflow.com/questions/27485225/modify-scheduling-on-azure-webjob