Azure WebJob被中止.没有异常被记录. [英] Azure WebJob gets aborted. No exceptions are logged.

查看:82
本文介绍了Azure WebJob被中止.没有异常被记录.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了带有诊断日志记录的触发类型的WebJob.它基本上是从Azure SQL提取数据.我在2018年11月28日08:16:23触发了Web作业,并且获取数据的最后一个日志是2018年11月29日4:53:13. 我是 使用'Basic:1小型应用服务计划.  为此WebJob始终启用. #24292e; font-size:14px>此外, 我没有 对关机期间所需的WEBJOBS_IDLE_TIMEOUT和Stopping_wait_time参数进行了任何更改.

为什么WebJob会间歇性关闭/中止?


解决方案

在您的Web作业代码中,该Web作业正在等待来自SQL的响应?通常,您会希望构建自己的Web作业以处理可能随时发生的任何类型的Web作业重新启动,尤其是在您的工作时间较长的情况下.


I have created a WebJob of Triggered type with Diagnostic logging. It basically fetches data from Azure SQL. I triggered the Web job at 11/28/2018 08:16:23 and the last log of fetching data is 11/29/2018 4:53:13. The status suddenly shows aborted and there is no exception / errors logged.

I am using 'Basic: 1 Small' App service plan. Always On is enabled for this WebJob. Also, I have not made any changes to WEBJOBS_IDLE_TIMEOUT and stopping_wait_time parameters required during shutdown. 

Any idea on why the WebJob is shutting down / aborted intermittently?


解决方案

In your webjob code is the webjob waiting for a response from SQL? Typically you will want to build your webjob to handle any sort of webjob restarts ect as those can happen at anytime, especially if you have a long running job.


这篇关于Azure WebJob被中止.没有异常被记录.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆