Scheduler
Schedule a workflow to run a new iteration in a specific time
You can use the scheduler in case you need your workflow to run at certain times or at a specific frequency. In this case set the cron expression according to your needs and the workflow will run accordingly and make new iterations.
Examples
@yearly - once a year
@monthly - once a month
@weekly - once a week
@daily - once a day
0 0 * * * * - the top of every hour of every day.
*/10 * * * * * - every ten seconds.
0 0 8-10 * * * - 8, 9 and 10 o'clock of every day.
0 0 6,19 * * * - 6:00 AM and 7:00 PM every day.
0 0/30 8-10 * * * - 8:00, 8:30, 9:00, 9:30, 10:00 and 10:30 every day.
0 0 9-17 * * MON-FRI - on the hour nine-to-five weekdays
0 0 0 25 12 ? - every Christmas Day at midnight
0 0 0 L * * - last day of the month at midnight
0 0 0 L-3 * * - third-to-last day of the month at midnight
0 0 0 1W * * - first weekday of the month at midnight
0 0 0 LW * * - last weekday of the month at midnight
0 0 0 * * 5L - last Friday of the month at midnight
0 0 0 * * THUL - last Thursday of the month at midnight
0 0 0 ? * 5#2 - the second Friday in the month at midnight
0 0 0 ? * MON#1 - the first Monday in the month at midnight
Cron is a software utility that specifies commands to run on a given schedule. This schedule is defined by a Cron pattern, which has a specific syntax that will be described in this section.
The Cron pattern consists of six space-separated fields
<second> <minute> <hour> <day of month> <month> <day of week>
Position | Field | Allowed values | Allowed special characters | Examples |
1 | second | 0-59 | , - * / |
|
2 | minute | 0-59 | , - * / |
|
3 | hour | 0-23 | , - * / |
|
4 | day of the month | 1-31 | , - * ? / L W |
|
5 | month | 1-12 or JAN-DEC | , - * / |
Tip The names of the months are not case-sensitive. |
6 | day of the week | 0-7 or MON-SUN where 0 and 7 is Sunday. | , - * ? / L # |
Tip The names of the days are not case-sensitive. |
Special characters
Character | Description |
---|---|
* | Used to select all values within a field. Example |
? | Used to specify something in one of the two fields in which the character is allowed, but not the other, mainly used for days of the week. Example If you want your trigger to fire on a particular day of the month, for example the 10th, but don't care what day of the week that happens to be, you could put "10" in the day-of-month field, and "?" in the day of the week field. |
- | Used to specify ranges. Example |
, | Used to specify additional values. Example |
/ | Used to specify increments. Example |
L | The value You cannot use |
W | Used to specify the weekday (Monday-Friday) nearest the given day. Example
However if you specify Tip The 'L' and 'W' characters can also be combined in the day-of-month field to yield 'LW', which translates to *"last weekday of the month"*. |
# | Used to specify “the nth” XXX day of the month. Example |