天蓝色的存储队列卡住了 [英] azure storage queue got stuck

查看:76
本文介绍了天蓝色的存储队列卡住了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

azure存储队列卡住了。


我们使用web作业从队列中读取消息,当有很多队列消息时,Web作业服务器很忙,并且卡住了处理队列消息,我们必须重新启动web作业才能恢复队列进程。

解决方案

请参阅$ b中提到的建议$ b GitHub#985。


有时候关注设置可能会导致这种情况:



  • WEBJOBS_IDLE_TIMEOUT - 以秒为单位的时间,如果它处于空闲状态,我们将中止正在运行的触发作业的进程,没有cpu时间或输出。默认值为2分钟。
  • SCM_COMMAND_IDLE_TIMEOUT - 默认情况下,当您的构建过程启动某个命令时,它允许运行最多60秒而不产生任何输出。


根据您的描述,请尝试增加"SCM_COMMAND_IDLE_TIMEOUT"和"WEBJOBS_IDLE_TIMEOUT" WebJob的设置,并找出它是否可以在你身边和Azure端工作。



你可以在WebJob项目的app.config文件的appSettings部分添加以下设置。



< appSettings>



<跨度>&NBSP;&NBSP;&NBSP;
< add key =" SCM_COMMAND_IDLE_TIMEOUT"值= QUOT; 3600" /> <! - 1小时 - >



   
< add key =" WEBJOBS_IDLE_TIMEOUT"值= QUOT; 3600" /> <! - 1小时 - >



< / appSettings>





您可以登录Azure Portal,选择托管WebJob的Web应用程序,单击SETTINGS>应用程序设置,在应用程序设置部分添加如上所述的设置。


其他信息:请参阅此文  https://azure.microsoft.com ... < br style ="">
有关部署WebJobs pl的更多信息轻松看 
< span style ="border:none windowtext 1.0pt;填充:0in; text-decoration:none"> https://azure.microsoft.com ..


请告知我们上述内容是否有帮助,或者您在此问题上需要进一步的帮助。 < o:p>< / o:p>




azure storage queue got stuck.

we use web job to read message from queue, when there are many queue messages, web job server is busy, and got stuck to process the queue messages, we have to restart web job to resume the queue process.

解决方案

Refer to the suggestion mentioned in the GitHub #985.
Sometimes following settings may cause this scenario:

  • WEBJOBS_IDLE_TIMEOUT - Time in seconds after which we'll abort a running triggered job's process if it's in idle, has no cpu time or output. The default value is 2 minutes.
  • SCM_COMMAND_IDLE_TIMEOUT - By default, when your build process launches some command, it's allowed to run for up to 60 seconds without producing any output.

According to your description, please try to increase "SCM_COMMAND_IDLE_TIMEOUT" and "WEBJOBS_IDLE_TIMEOUT" settings for your WebJob and find out whether it could work on your side and the Azure side.

You could add the following settings in the appSettings section of the app.config file in your WebJob project.

<appSettings>

    <add key="SCM_COMMAND_IDLE_TIMEOUT" value="3600" /> <!--1 hour-->

    <add key="WEBJOBS_IDLE_TIMEOUT" value="3600" /> <!--1 hour-->

</appSettings>

Or

You could log in to Azure Portal, choose the web app which hosts your WebJob, click SETTINGS > Application settings, add the settings as the above in the App settings section.

Additional information: Please see this article https://azure.microsoft.com...
For more information on deploying WebJobs please see 
https://azure.microsoft.com..

Kindly let us know if the above helps or you need further assistance on this issue. <o:p></o:p>



这篇关于天蓝色的存储队列卡住了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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