Webjob not running on set interval time

Suresh Mohanakrishnan 26 Reputation points
2024-04-25T20:27:31.6166667+00:00

We have a web job set to trigger every 2 minutes(Schedule: 0 */2 * * * *). Based on the Webjob details recent job run logs we notice that sometimes the trigger interval is 4 minutes. I've done the general internet search on this and most responses I get mention to set the web app service config to 'Always On'. We have this set up as such.

Has anyone else experienced this? Any suggestions or solutions is greatly appreciated.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,910 questions
{count} votes

1 answer

Sort by: Most helpful
  1. hossein jalilian 3,015 Reputation points
    2024-04-25T20:59:59.88+00:00

    Thanks for posting your question in the Microsoft Q&A forum.

    Azure WebJobs have a default timeout of 120 seconds (2 minutes) of inactivity, after which the WebJob is aborted. if the WebJob takes longer than 2 minutes to complete its task, it may be aborted, causing the next trigger to occur 4 minutes after the previous one.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful

    1 person found this answer helpful.
    0 comments No comments