使用Autoswap发布App Service后删除了Azure WebJob [英] Azure WebJob removed after App Service publish with Autoswap

查看:89
本文介绍了使用Autoswap发布App Service后删除了Azure WebJob的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个Asp.Net Core Azure应用服务.我们添加了一个部署插槽,我们可以在其中部署.此慢速启用了自动交换.

We have an Asp.Net Core Azure App Service. We have added one deployment slot, to which we deploy. This slow has Autoswap enabled.

当我们部署新版本的.Net Core Console应用WebJob时,我们已经在生产环境中添加了该WebJob,则会将其删除.

When we deploy a new version .Net Core Console app WebJob we have added in production, it is removed.

问题是,什么时候可以与Asp.Net Core项目一起发布WebJob.

The question is, when will it be possible to publish a WebJob alongside an Asp.Net Core project.

推荐答案

As stated ins this SO answer, a Web job is part of the App service content.

因此,从一个插槽切换到另一个插槽时,您要切换整个应用服务内容,其中包括切换 Webjobs .

So when switching from one slot to another, you are switching the whole App Service content, which includes switching Webjobs.

这篇关于使用Autoswap发布App Service后删除了Azure WebJob的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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