长时间运行的Web作业被中止天青 [英] Long running Web Job being aborted by Azure
问题描述
我有一个天青网站被中止内的Web作业。
其相当长时间运行,同时也许是30分钟。它拉了很多从Azure的SQL数据库中的数据,基本上编译用于报告数字。
I have a Web Job within an Azure website that is being aborted. Its rather long running, taking perhaps 30 mins. It pulls in a lot of data from an Azure SQL database and basically compiles figures used for reporting.
在输出日志中寻找这样看来,天青中止没有中旬到执行方式警告的作业。没有任何迹象显示原因。
Looking at the output logs it would appear that Azure aborts the job with no warning mid way through execution. There is no indication as to why.
有没有办法来prevent天青从中止网络招聘?
Is there a way to prevent Azure from aborting a Web Job?
该网站是一个标准的蔚蓝网站内举办。
The website is hosted within a standard azure website.
感谢
推荐答案
检查webjob - 发布 - settings.json在 stopping_wait_time
参数。参数的值以秒使用。所以,如果你需要执行30分钟的时间蔚蓝中止之前使用:
Check the stopping_wait_time
parameter within webjob-publish-settings.json. The value of the parameter is used in seconds. So if you need 30 minutes of execution time before azure aborts it use:
stopping_wait_time:1800
在这里学分:<一href=\"http://blog.amitapple.com/post/2014/05/webjobs-graceful-shutdown/#.VNqThvmG8oc\">http://blog.amitapple.com/post/2014/05/webjobs-graceful-shutdown/#.VNqThvmG8oc
关于
这篇关于长时间运行的Web作业被中止天青的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!