本文介绍了如何使用vNext在VSO中通过CI部署Webjob的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过VSO中的CI和vNext任务部署计划的webjob.

I'm trying to deploy a scheduled webjob through CI and vNext tasks in VSO.

我按照以下教程中的步骤将webjob与Web应用程序一起部署(对Web项目启用自动部署"): https://azure.microsoft.com/zh-我们/documentation/articles/websites-dotnet-deploy-webjobs/

I followed the steps in the following tutorial to deploy a webjob along with a web app ("Enable automatic deployment with a web project"):https://azure.microsoft.com/en-us/documentation/articles/websites-dotnet-deploy-webjobs/

我取得了部分成功:webjob与Web应用程序一起部署.但是,它标记为 On Demand ,而不是 Scheduled (或任何适当的状态).我可以手动运行webjob,并且运行正常.我从教程中检查了文件webjob-publish-settings.json(在Webjob中)和webjobs-list.json(在Web应用程序中),它们似乎还不错.

I succeeded partially: the webjob gets deployed along with the web application. However, it is marked as On Demand instead of Scheduled (or whatever the proper status is). I can run the webjob manually and it runs just fine. I checked the files webjob-publish-settings.json (in the webjob) and webjobs-list.json (in the web app) and they seem to be alright, judging from the tutorial.

我错过了什么吗?谢谢.

Am I missing anything? Thank you.

推荐答案

如果您的应用程序以基本"或高级"模式运行,则可以使用cron表达式来创建webjob调度程序.请参阅此链接以获取详细信息:创建使用CRON表达式的预定WebJob

You can use the cron expression to create the webjob scheduler if your app is running in Basic or High mode. Refer to this link for details: Create a scheduled WebJob using a CRON expression

否则,您需要启用继续交付Azure Webjobs .

更多参考:部署您的使用持续交付将WebJobs项目与Azure网站一起使用

这篇关于如何使用vNext在VSO中通过CI部署Webjob的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-25 06:08