Job Reference
September 28, 2020 ยท View on GitHub
Job
Schedule for a list of tasks
| Property | Description | Required |
|---|---|---|
schedule | Cron-style job schedule | Yes |
timezone | Timezone for schedule | No |
enabled | When false job will not execute | No |
run_on_init | Run job on start | No |
on_error | List of notifier names to send task errors to | No |
tasks | List of task names for this job | Yes |
schedule
Cron-style job schedule. The main difference from the vanilla cron syntax is that the finest granularity is seconds instead of minutes. For more information checkout the node-cron documentation
schedule: '*/10 * * * * *' # Run every 10 seconds
timezone
IANA Timezone to adjust the schedule time to. Default is to use the host time
timezone: America/Toronto
enabled
When false job will not execute. Default value is true
enabled: false
run_on_init
Run job on daemon startup. Default value is false
run_on_init: true
on_error
List of notifier names to send task errors to
tasks:
- notifier1
- notifier2
- notifier3
tasks
List of task names for this job. All tasks will be executed sequentially
tasks:
- task1
- task2
- task3