Azure WebJobs publishing error

江枫思渺然 提交于 2019-12-06 03:27:55

Found the solution, after downgrading Webjobs.Publish nuget package from 1.0.6 to 1.0.3 everything worked smoothly. MS should be more careful when publishing packages that are not matching the current tooling as it's not the first time we encounter issues like this.

Clay Lenhart

This sounds like the same issue: An error occurred while creating the WebJob schedule

For me, I connected to the target subscription in the Server Explorer window. It sounds like this should be unrelated to publishing, but it works.

Look at this blog post: http://blog.amitapple.com/post/2015/06/scheduling-azure-webjobs/

It'll give you another option for deploying a scheduled webjob, all you need is the settings.job file per scheduled webjob with the schedule described using a cron expression.

Like this: {"schedule": "the schedule as a cron expression"}

Then you can delpoy the webjob as "Run on-Demand" (confusing, I know).

To see the status of the webjob go to: https://{sitename}.scm.azurewebsites.net/api/webjobs

For the slot go to: https://{sitename}-{slotname}.scm.azurewebsites.net/api/webjobs

Note the schedule in this scenario is sticky to thesite, opposed to with the Azure scheduler where it is sticky to theslot, this means when you swap the slots, the schedule is swapped with the site so the schedule move from staging to production for example. More about slot stickyness can be found here

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