Can't schedule azure webjob

谁说我不能喝 提交于 2019-12-07 06:34:52

问题


I'm not being able to publish a scheduled WebJob to Azure App Service. I'm using Visual Studio 2017.

With this settings all works fine:

{ "$schema": "http://schemastore.org/schemas/json/webjob-publish-settings.json", "webJobName": "WebJobName", "runMode": "OnDemand" }

But when I set this settings:

{ "$schema": "http://schemastore.org/schemas/json/webjob-publish-settings.json", "webJobName": "WebJobName", "startTime": "2017-03-17T07:00:00+00:00", "endTime": "2027-03-17T07:00:00+00:00", "jobRecurrenceFrequency": "Day", "interval": 1, "runMode": "Scheduled" }

Visual Studio 2017 crashes at the "Creating the scheduler job" step.

I can't find how to schedule this job, I'm using the package Microsoft.Web.WebJobs.Publish 1.0.13

Can anyone help me?

Thanks


回答1:


The feature where VS configures the Azure Scheduler has many issues, and is on the way to deprecation. Instead, the suggested approach is to rely on the CRON feature described here.

As an aside, if you want to get the scheduler working and not move to CRON, one thing you should do is upgrade to the latest version on the WebJobs NuGet package, which should solve this particular issue.



来源:https://stackoverflow.com/questions/42841635/cant-schedule-azure-webjob

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