简体   繁体   English

当Azure计划的WebJob抛出未处理的异常时会发生什么?

[英]What happens when an Azure Scheduled WebJob throws an unhandled exception?

My case is that the job will run for about twelve hours every 60 seconds and then it will just stop and I have to manually start it again. 我的情况是,该作业每60秒将运行约十二小时,然后它将停止,而我必须手动再次启动它。 My web job is just a plain CLI that is not using the SDK. 我的网络作业只是一个不使用SDK的普通CLI。 It seems as if my web job is being disabled if I have an unhandled exception and then I have to manually start it again. 如果我有一个未处理的异常,似乎我的Web作业已被禁用,然后必须再次手动启动它。 Is this a correct behavior? 这是正确的行为吗?

As we found in the comments, the root issue was that the Web App did not have the Always On option enabled. 正如我们在评论中所发现的,根本问题是Web App没有启用Always On选项。 After enabling it, the issue went away. 启用它后,问题就消失了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM