Azure WebJob - Trigger not running on schedule with cron expression - 0 0 14 4 1/1 *

Anonymous
2021-02-09T10:01:27.857+00:00

We have a Webjob that should be triggered on 4th of every month at 2PM. We have used a CRON expression "0 0 14 4 1/1 *" . But, the job does not trigger at this time. Any idea why this CRON expression might not be working? Or could there be a different issue?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ajkuma 28,111 Reputation points Microsoft Employee Moderator
    2021-02-09T18:38:14.35+00:00

    @Anonymous ,

    In case Always On is disabled, enable this feature and see if that makes any difference.

    By default, web apps are unloaded if they are idle for some period of time. This lets the system conserve resources. In Basic or Standard mode, you can enable Always On to keep the app loaded all the time.

    Just to confirm, ensure the CRON expression has ‘schedule’ append.

    {

    "schedule": "0 0 14 4 1/1 *"

    }

    Ensure it is deployed in the right directory/ triggered job copy your binaries to: d:\home\site\wwwroot\app_data\jobs\triggered{job name}

    To get more details on the issue, review the logs and let us know.
    Navigate go to the url: https://{sitename}.scm.azurewebsites.net/api/triggeredwebjobs/{jobname} (remove the job name to see all triggered WebJobs)


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.