Spring Cron syntax
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.
Warning If you create an invalid Cron pattern, Collibra Data Intelligence Cloud stops responding.
Note By default, Collibra Console uses Spring Cron expressions to schedule back-ups, while you use Quartz Cron expressions, for example, to schedule your mail, LDAP synchronizations, Purge cycles, Tableau and S3 synchronizations or to create a statistics cron map.
The Cron pattern consists of six space-separated fields:
<second> <minute> <hour> <day> <month> <weekday>
|
Position |
Field |
Description |
|---|---|---|
|
1 |
second |
This field determines the second of the schedule:
|
|
2 |
minute |
This field determines the minute of the schedule:
|
|
3 |
hour |
This field determines the hour of the schedule:
|
|
4 |
day of the month |
This field determines the day of the schedule:
|
|
5 |
month |
This field determines the month of the schedule:
|
|
6 |
day of the week |
This field determines the day of the week of the schedule:
|
For more information, see the Spring Cron documentation.
Non-standard characters
- asterisk (*): Used to select all values within a field. For example, "*" in the minute field corresponds with every minute.
- question mark (?): Used to specify something in one of the two fields in which the character is allowed, but not the other, mainly used for weekdays. For 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 weekday field.
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, no matter what weekday it is.