无法安排天蓝色的webjob [英] Can't schedule azure webjob

查看:116
本文介绍了无法安排天蓝色的webjob的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法将预定的WebJob发布到Azure App Service.我正在使用Visual Studio 2017.

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":按需" }

{ "$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":天", 间隔":1, "runMode":计划的" }

{ "$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在创建计划程序作业"步骤崩溃.

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

我找不到如何安排这项工作,我正在使用Microsoft.Web.WebJobs.Publish 1.0.13包

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

有人可以帮助我吗?

谢谢

推荐答案

VS用于配置Azure Scheduler的功能存在很多问题,并且正在淘汰中.相反,建议的方法是依靠

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.

顺便说一句,如果您想使调度程序正常工作而不转移到CRON,您应该做的一件事是升级到WebJobs NuGet软件包上的最新版本,这应该可以解决此特定问题.

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.

这篇关于无法安排天蓝色的webjob的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆