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 ?
- Go to your Azure portal
- Find and open your Azure WebApp panel
- Select the “settings” menu as showed in the picture below
- 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
I’m my case you see that the option is not clickable. This is because I’m using a Free web app pricing plan.