Cron expression for every week monday at 9:30 AM

sam
sam
136 Points
63 Posts

I'm using Azure WebJob to Run Background tasks with WebJobs in Azure App Service. It's scheduled WebJob and I have following cron expression:

0 30 9 ? * MON *

But it is not executing. How can one run a cron job for every Monday at 9:30 AM?

Views: 58
Total Answered: 2
Total Marked As Answer: 0
Posted On: 04-Oct-2019 08:33

Share:   fb twitter linkedin
Answers
kikme
kikme
26 Points
8 Posts
         

Use following cron expression:

30 9 * * MON

It will run  every Monday at 9:30 AM.

Reference: https://crontab.guru/#30_9_*_*_MON

Posted On: 05-Oct-2019 00:19
Rashmi
Rashmi
Member
114 Points
27 Posts
         

Following are the explanation of cron expression:

 => * * * * *  cron expression
=> │ │ │ │ │
=> │ │ │ │ │
=> │ │ │ │ └───── day of week (0 - 6) (0 to 6 are Sunday to Saturday, or use names; 7 is Sunday, the same as 0)
=> │ │ │ └────────── month (1 - 12)
=> │ │ └─────────────── day of month (1 - 31)
=> │ └──────────────────── hour (0 - 23)
=> └───────────────────────── minute (0 - 59)

So, according to above cron expression to execute every Monday at 9:30 AM will be

30 9 * * 1
Posted On: 05-Oct-2019 00:36
 Log In to Chat