Azure Web服务停止时Azure Webjob是否停止(Does Azure Webjob stop when Azure App Service is stopped)

在我们当前的设置中,有一个用于Azure App服务的插槽,我的问题是,当插槽停止时它是否还会关闭部署在该插槽上的webjob或者web作业是否会继续运行?

In our current setup there are 2 slots for an Azure App service, the question that I have is, when the slot is stopped would it also shut down the webjob that is deployed on that slot or would the web job continue to run?

最满意答案

即使Azure App Service Web App未运行,也可以运行Azure WebJob。

虽然在Web应用程序的“应用程序设置”中使用WEBJOBS_STOPPED设置运行Web App时,可以强制WebJob不运行或停止

有关更多详细信息,请查看有关此主题的文章:

https://blogs.msdn.microsoft.com/benjaminperkins/2017/03/01/failed-to-run-webjob/

下图显示了Web应用程序未运行时正在运行的WebJob:

在此处输入图像描述

It is possible to run an Azure WebJob even when the Azure App Service Web App is not running.

Though you can force the WebJob not to run or stop when the Web App is running using WEBJOBS_STOPPED setting in your Web App's "Application Settings"

Take a look at this article about this subject for more details:

https://blogs.msdn.microsoft.com/benjaminperkins/2017/03/01/failed-to-run-webjob/

The following picture shows a running WebJob when the web app is not running:

enter image description here

更多推荐

Azure,App,web,webjob,电脑培训,计算机培训,IT培训"/> <meta name="descript