Modify scheduling on Azure WebJob

Deadly 提交于 2019-12-21 07:23:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!