即使启用了 Always On,Continuous Web Job 也会停止

Continuous Web Job stops even if Always On is enabled

我已经创建了一个启用了 Always On 选项的标准服务计划 Azure Web 应用程序。在这个应用程序上我没有发布任何网站。我只发布了一个 Continuous Web Job。

问题是虽然我启用了 Always On 选项,但我可以在 Web 作业日志中看到 Web 应用已停止。

以下是 Web 作业日志:

[09/29/2015 07:35:26 > 189701: SYS INFO] WebJob is still running
[09/29/2015 08:51:54 > 189701: SYS INFO] WebJob is stopping due to website shutting down
[09/29/2015 08:51:54 > 189701: SYS INFO] Status changed to Stopping
[09/29/2015 08:52:04 > 189701: SYS INFO] Status changed to Starting
[09/29/2015 08:52:25 > 189701: SYS INFO] Run script 'ExchangePullNotifications.exe' with script host - 'WindowsScriptHost'
[09/29/2015 08:52:25 > 189701: SYS INFO] Status changed to Running

这种情况发生了多次,还是只发生了一次?如果有任何事情导致站点重新启动(例如更改站点设置),则此行为是正常的。之后只要快速重启应该没有什么影响。

只有停止而不是重新启动才会引起关注,而这种情况不应该发生。

问题似乎是我在我的应用程序中使用了 WebApp 环境不支持的 Azure SDK。