On Cron Job#
The On Cron Job task allows the user to configure a task that will emit depending on a cron job expression.
Inputs#
| Name | Data Type | Description |
|---|---|---|
| CronExpression | String | Cron job expression |
| NumberOfOccurrences | Integer | Number of occurrences to trigger the cron job after activation/reactivation. Leave 0 to ignore the counter |
| Enable/Disable | any | Activates the cronjob execution |
Outputs#
| Name | Data Type | Description |
|---|---|---|
| Timestamp | DateTime | Current time upon execution |
| Success | Boolean | If there was no problem emits a true |
| Error | Error | Error that occurred during the processing of this task |
Settings#
| Name | Data Type | Default | Description |
|---|---|---|---|
| Auto Enable | Boolean | true | Activates the cronjob execution |
| Cron Expression | String | * * * * * * | Default Cron job expression |
| Number of Occurrences | Integer | 0 | Default number of occurrences to trigger the cron job after activation/reactivation. Leave 0 to ignore the counter |
Behavior#
The On Cron Job task, allows the user to configure a cron job expression and have logic that is triggered whenever the cron job expression is reached.
Remarks#
- The cron expression is evaluated in UTC.
- The
NumberOfOccurrencescount starts again each time the task is enabled. Atrueon theEnable/Disableinput while the task is running is ignored. - When the cron expression is not valid, the task logs
Cron expression '<expression>' is not valid, does not start, and emits the error onError. A latertrueon theEnable/Disableinput makes a new attempt with the cron expression received by then.
