locked
azure storage queue got stuck RRS feed

  • Question

  • 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.

    Friday, February 15, 2019 6:52 PM

All replies

  • 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>


    Sunday, February 17, 2019 7:53 AM
  • @Samuel Wang Just checking in to see if the above answer helped. If this answers your query, do click “Mark as Answer” and Up-Vote for the same, which might be beneficial to other community members reading this thread. And, if you have any further query do let us know.
    Tuesday, March 12, 2019 10:21 AM