OnSchedule
Last updated
Last updated
This allows you to trigger your task based on a predefined schedule, either a cron expression or an "every x" notation.The interface is as follows:
Standard cron expression in UTC timezone.
Cron expression utilizes the following format:
Examples with the cron format:
42 * * * * : Execute when the minute is 42 (e.g. 19:42, 20:42, etc.).
0 0 * * 1 : Execute at 00:00 on Monday
Currently, W
(nearest weekday) and L
(last day of month/week) are not supported. Most other features supported by popular cron implementations should work seamlessly, including #
(nth weekday of the month).
If you don't like writing cron expressions and prefer to configure your job to run every nth minute/hour/day. The starting time used as a reference is the first minute of the hour / first hour of the day / first day of the month, respectively.
(TODO)
Format: [number]m|h|d
Examples:
"5m" = every 5th minute of the hour, starting from xx:00 (e.g. 04:00, 04:05, 04:10...)
"3h" = every 3rd hour, starting from 00:00. (e.g. 00:00, 03:00, 06:00...)
"7d" = At 00:00 on every 7th day-of-month, starting on the 1st (e.g. 2022-09-01 00:00:00, 2022-09-08 00:00:00, 2022-09-15 00:00:00, 2022-09-22 00:00:00, 2022-09-29 00:00:00, 2022-10-01 00:00:00)
is used to parse crontab instructions.