Azure Webjob无故停止



我有一个连续的webjob,应该运行,直到我停止它。我依赖这个条件,但由于某种原因,这种现象发生在我身上:

[01/19/2021 09:57:51 > 44ab83: SYS INFO] Detected WebJob file/s were updated, refreshing WebJob
[01/19/2021 09:57:51 > 44ab83: SYS INFO] Status changed to Stopping
[01/19/2021 09:57:56 > 44ab83: ERR ] Thread was being aborted.
[01/19/2021 09:57:57 > 44ab83: SYS INFO] WebJob process was aborted
[01/19/2021 09:57:57 > 44ab83: SYS INFO] Status changed to Stopped

代码没有抛出任何错误,所以我想知道为什么webjob重新启动自己。Detected WebJob file/s were updated, refreshing WebJob是什么意思?我没有在WebJob的目录下创建/写入任何文件。

Azure Web作业自动重启/刷新故障处理

<标题>

解决方案1:原因1:

Due to website shutdown/restart

原因2:

Due to changes in the azure web job directory files or file content (`D:homesitewwwrootapp_datajobscontinuous<WebJobName>`)

原因3:

Due to a web app and/or web job deployment

原因4:

Due to an azure outage or maintenance

详情请参阅本博客

链接:https://www.cryingcloud.com/blog/2016/11/02/troubleshooting-automatic-restart-of-azure-web-jobs<标题>

解决方案2:提出支持票,让微软帮你检查日志

最新更新