...
Info |
---|
NOTE: the “*/5” means create a list of all minutes and run the job for every fifth value from the list. |
More CRON Examples
Below are some additional examples of cron strings related to scheduling:
Minutes | Hours | Day of Month | Month | Day of week | Year | Description |
---|---|---|---|---|---|---|
0 | 10 | * | * | ? | * | Run at 10:00 am (UTC) every day |
15 | 12 | * | * | ? | * | Run at 12:15 pm (UTC) every day |
0 | 18 | ? | * | MON-FRI | * | Run at 6:00 pm (UTC) every Monday through Friday |
0 | 8 | 1 | * | ? | * | Run at 8:00 am (UTC) every 1st day of the month |
0/15 | * | * | * | ? | * | Run every 15 minutes |
0/10 | * | ? | * | MON-FRI | * | Run every 10 minutes Monday through Friday |
0/5 | 8-17 | ? | * | MON-FRI | * | Run every 5 minutes Monday through Friday between 8:00 am and 5:55 pm (UTC) |
CRON Restrictions
There are several restrictions when it comes to CRON expressions:
We are not allowed to specify the Day-of-month and Day-of-week fields in the same cron expression. If you specify a value (or a *) in one of the fields, you must use a ? (question mark) in the other.
Any cron expressions that lead to rates faster than 1 minute are not supported.