Elements of the flow - Cron Trigger
The cronjob triggers a flow according to a schedule defined by the cronjob expression. This allows processes in GroupAlarm to be automated at specified times. A classic example of such a process is a regular test alarm.
Automated tasks
extension under Admin ⇾ Extensions.Configuration
1️⃣ In the schedule input field, specify the cron job expression to be executed. The expression contains all information regarding the time of execution. The syntax consists of five intervals. The smallest possible interval is per minute, followed by per hour, the day of the month, the month and the day of the week. A detailed description and examples of the syntax can be found below.
2️⃣ Once you have specified a cronjob expression, you will see a list of the first three executions of the cronjob. This gives you an overview of whether your syntax is working as intended.
Cron fields
Each asterisk (*
) in the schedule corresponds to a field in the table and stands for ‘all’ permissible values for that field.
Position | Field | Permissible values | Description |
---|---|---|---|
1 | Minutes | | The minute of the hour at which the command is executed. |
2 | Hours | | The hour of the day at which the command is executed (0 is midnight). |
3 | Day of the month | | The day of the month on which the command is executed. |
4 | Month | | The month of the year in which the command is executed. |
5 | Day of the week | | The day of the week on which the command is executed. Both |
Cron syntax overview
Symbol | Description | Example |
---|---|---|
| Corresponds to all values in the field. | |
| Lists values separated by commas. | |
| Defines a range of values. | |
| Defines intervals. The first | |
| Used instead of | |
| ‘Last’. Specifies the last day of the month or the last day of the week in the month. | |
| ‘Nth day of the week of the month’. Specifies the Nth occurrence of a particular day of the week. | |
Special notes:
?
and*
: You can use?
either for the day of the month or for the day of the week, but not for both at the same time. It serves to resolve the conflict logic that exists in the standard Unix cron syntax.L
: WhenL
is used in the day of the week field, it can be combined with a number. For example,5L
means the last Thursday of the month.#
: The syntax isday of the week#occurrence
. For example,1#2
means the second Monday. (1
stands for Monday).
Common cron examples
Cron expression | Description |
---|---|
| Every minute. |
| Every day at 12:00 noon. |
| Every two hours. |
| Every working day at 12:00 noon. |
| Weekly, at midnight from Saturday to Sunday. |
| Monthly, on the first day of the month at 00:00. |
| On the first Saturday of the month at 12:00 |
| Annually, on 1 January at 00:00. |
| Every 15 minutes. |
| Every hour between 9:00 and 17:00, Monday to Friday only. |
Updated on: 19/08/2025
Thank you!