Azure Webjob 无故停止
Azure Webjob stops for no reason
我有一个连续的网络作业,应该 运行 直到我停止它。我是靠这个条件的,但是不知为什么这个现象发生在我身上:
[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
是什么意思?
我没有 creating/writing WebJob 目录中的任何文件。
Azure Web 作业 restart/refresh 自动故障排除
解决方案 1:
理由一:
Due to website shutdown/restart
原因二:
Due to changes in the azure web job directory files or file content (`D:\home\site\wwwroot\app_data\jobs\continuous\<WebJobName>`)
原因三:
Due to a web app and/or web job deployment
理由四:
Due to an azure outage or maintenance
更多详情,可以参考这篇博客。
Link: https://www.cryingcloud.com/blog/2016/11/02/troubleshooting-automatic-restart-of-azure-web-jobs
解决方案 2:
提出支持票,让微软帮你检查日志。
我有一个连续的网络作业,应该 运行 直到我停止它。我是靠这个条件的,但是不知为什么这个现象发生在我身上:
[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
是什么意思?
我没有 creating/writing WebJob 目录中的任何文件。
Azure Web 作业 restart/refresh 自动故障排除
解决方案 1:
理由一:
Due to website shutdown/restart
原因二:
Due to changes in the azure web job directory files or file content (`D:\home\site\wwwroot\app_data\jobs\continuous\<WebJobName>`)
原因三:
Due to a web app and/or web job deployment
理由四:
Due to an azure outage or maintenance
更多详情,可以参考这篇博客。
Link: https://www.cryingcloud.com/blog/2016/11/02/troubleshooting-automatic-restart-of-azure-web-jobs
解决方案 2:
提出支持票,让微软帮你检查日志。