Why my Azure WebJobs status is aborted ? How to solve it

Hello,

I faced the issue today, back from the week-end my Azure WebJobs deployed last friday had the status Aborted.

After some research, I found that the running time of my webjob was more than 20 minutes.

20 minutes is the average time of the Azure WebApp time out, this time out has the effect to stop (aborted) the Azure WebJob.

But then how to solve it, if you want to have an Azure WebJob running much longer ?

  1. Go to your Azure portal
    https://portal.azure.com
  2. Find and open your Azure WebApp panel
  3. Select the “settings” menu as showed in the picture below
    one
  4. Then in the new menu that just pop out, select the “Application settings”. There you will find the property “Always On”. This is the key to keep your job running.
    The picture below show you the menu
    2I’m my case you see that the option is not clickable. This is because I’m using a Free web app pricing plan.
Advertisements
This entry was posted in Azure and tagged , , , . Bookmark the permalink.

4 Responses to Why my Azure WebJobs status is aborted ? How to solve it

  1. Hanz says:

    it does not work, the process was cut after 28 minutes

    Like

  2. Hanz Castillo Meza says:

    I was looking for solutions to my problem, because with the “Allways On” was not enough. And I found that you can also set parameters with keys to control the time of Aborted. Here is the link as a contribution to those who need it:

    https://github.com/projectkudu/kudu/wiki/Web-jobs#configuration-settings

    use “WEBJOBS_IDLE_TIMEOUT” for webjob timeout.
    I hope it will help, thanks.

    Like

    • Hello thanks for your comment.

      I saw in the post:
      “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 (Only for triggered jobs).”

      So this is more to cut a webjob when it is waiting for something. It was something like that on your side ?

      I still do have jobs running for hours without changing this property.

      Thanks.

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s