Cron expressions in Serverless Integrations
You can set schedules in Serverless Integrations using cron expressions
Cron expression format
Cron expression field order: Seconds Minutes Hours Day-of-month Month Day-of-week.
Possible field values
Note
Special characters, as well as months and days of the week, are case-insensitive: MON is the same as mon.
| Field name |
Required field |
Acceptable values |
Supported special characters |
|---|---|---|---|
Seconds, seconds |
Yes | 0-59 | ,, -, *, / |
Minutes, minutes |
Yes | 0-59 | ,, -, *, / |
Hours, hours |
Yes | 0-23 | ,, -, *, / |
Day of month, day of the month |
Yes | 1-31 | EventRouter: ,, -, *, ?, /, L, W; Workflows: all of the above except ?, L, and W. |
Month, month |
Yes | 1-12, JAN-DEC |
,, -, *, / |
Day of week, day of the week |
Yes | 1-7, MON-SUN |
EventRouter: ,, -, *, ?, /, L, #; Workflows: all of the above except ?, L, and #. |
Special characters
You can use the following special characters in cron expressions:
-
*: Selects all values in the field.*inMinutes: The timer starts every minute. -
?: Selects any field value. You cannot specifyDay of monthandDay of weekat the same time. If you have entered a value in one of these fields, put?in the other one. Workflows does not support?in theDay of weekfield.10inDay of monthand?inDay of week: The timer starts every tenth day of the month. -
-: Selects a range of values.10-12inHours: The timer starts at 10 a.m., 11 a.m., and 12 p.m. -
,: Selects multiple values.MON,WED,FRIinDay of week: The timer starts on Monday, Wednesday, and Friday. -
/: Increment the value.0/15inMinutes: The timer starts at 0, 15, 30, and 45 minutes past each hour. -
L: This character functions differently in the two fields it is valid for:- In the
Day of monthfield, it stands for the last day of the month. - In the
Day of weekfield, it stands for the last day of the week,7(Sunday,SUN).
It is only supported for EventRouter.
LinDay of month: The timer starts on January 31, February 28, and so on. - In the
-
W: Selects the weekday nearest to the specified date. It is only supported for EventRouter.15WinDay of month: The timer starts on the weekday nearest to the 15th day of the month. If the 15th day is a Saturday, the timer starts on Friday the 14th.Note
LandWin theDay of monthfield can also merge into theLWcombination, starting the timer on the last weekday of the month. -
#: Selects the Nth day of the month. It is only supported for EventRouter.6#3inDay of week: The timer starts on the third Friday of the month (6 for Friday; 3 for the third Friday of the month).
Examples of cron expressions
| Cron expression | Description |
|---|---|
0 * * * * ? |
The timer starts every minute. |
0 0 * ? * * |
The timer starts every hour. |
0 15 10 ? * * |
The timer starts every day at 10:15. |