Cron Schedule Syntax
All Celigo flows use the Cron style of scheduling. This document describes Cron syntax and provides use case examples.
Cron schedules have five positions:
The first position is for the minute. This is in 15 minute intervals since the script that checks the schedule runs every 15 minutes.
The interval ranges in an hour are:
|HR||The second position is the hour of the day. This is expressed in military format 0-23 where 0 is midnight (12 AM) and 23 is 11 PM. If 11,23 is entered, this means the script runs at 11 AM and 11 PM.|
|DAY||The third position is the day of the month from 1-31. If 15 is entered, the script only runs on the 15th day of the month. Enter an asterisk (*) to let it run every day.|
|MO||The fourth position specifies the months to run. This is expressed as 1-12, where 1 is January and 12 is December. Enter an asterisk (*) to run the script every month.|
|WKD||The last position is the day of the week. Use MON, TUE, WED, THU, FRI, SAT, SUN to represent each day of the week.|
- Example 1: * * ? * *
- Example 2: * * * * ?
Run on the first 15 minutes of the hour every 11 AM and 11 PM of every day and every month for any day of the week.
0-14 11,23 ? * MON,TUE,WED,THU,FRI,SAT,SUN
Run on the first part of the hour at 5 AM every 15th day of the month.
0-14 5 15 * ?
Run at the bottom of the hour at 1 PM and 5 PM every month only on Mondays, Wednesdays, and Fridays.
30-44 13,17 ? * MON,WED,FRI
Run every 15 minutes everyday.
0-14,15-29,30-44,45-59 * ? * *
* * ? * *
0-14 12 ? * MON-FRI
Run at 5 PM on weekdays.
0-14 17 ? * MON-FRI
Run on the first day of the month at 7 AM.
0-14 7 1 * ?
Run on the last day of the month at 5 PM.
0-14 17 L * ?