View Azure WebJob Schedule in Portal?

ぐ巨炮叔叔 提交于 2019-12-10 22:36:40

问题


I created a simple Azure WebJob with a schedule via the Visual Studio integration to run once per day.

I've deployed the WebJob and see it listed in my app on Azure.

{
  "$schema": "http://schemastore.org/schemas/json/webjob-publish-settings.json",
  "webJobName": "MyJob",
  "startTime": "2015-12-10T03:00:00-05:00",
  "endTime": null,
  "jobRecurrenceFrequency": "Day",
  "interval": 1,
  "runMode": "Scheduled"
}

How can I actually once logged into the Azure Portal see that it will in fact run at 3 AM? I believe it uses the Scheduler under the hood, but I don't see it new entry in my list of Schedules.


回答1:


In the latest release, WebJobs can be trigger using the TimerTrigger so that you don't rely on the scheduler.

To answer your question, YES, the scheduled WebJob rely on the scheduler. If you don't see an item in the scheduler, I doubt it's going to run. So maybe you can configure it on the portal to ensure it's going to run.

My suggestion is to completely migrate to the new WebJobs SDK and use the TimerTrigger Extension.

Hope this helps




回答2:


In the new portal, click Browse / Scheduler Collections. You should see a collection containing the job that hits your WebApp.

As an aside, the preferred approach is now to scheduler your WebJob using a CRON expressing, instead of relying on the scheduler. See details on https://azure.microsoft.com/en-us/documentation/articles/web-sites-create-web-jobs/#CreateScheduledCRON.



来源:https://stackoverflow.com/questions/34203859/view-azure-webjob-schedule-in-portal

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