Scheduling
Natural language
Scheduled frame transfers allow scheduling using natural language.
The follow is a non-exhaustive list of examples
Frequencies |
---|
every day at five |
every weekend at five |
every day at 5 pm |
every tuesday at 5 pm |
every wed at 5 pm |
every day at 16:30 |
every day at 16:00 and 18:00 |
every day at noon |
every day at midnight |
every tuesday and monday at 5pm |
every wed or Monday at 5pm and 11 |
every day at 5 pm on America/Los_Angeles |
every day at 6 pm in Asia/Tokyo |
every 3 hours |
every 4 months |
every 5 minutes |
every 15s |
Durations
Frequencies can be specified using durations. These are strings of numbers followed by a symbol to denote the time period. Symbols are as follows:
Symbol | Meaning |
---|---|
y | Year |
M | Month |
d | Day |
h | Hour |
m | Minute |
s | Second |
Examples:
Duration | Meaning |
---|---|
1y2M3d | Every 1 year, 2 months, and 3 days |
1d | Every day |
15m | Every 15 minutes |
15m55s | Every 15 minutes and 55 seconds |
1M15d | Every 1 month and 15 days |
Cron
Scheduled Frame Transfers allow scheduling using cron expressions, in addition to semantic frequencies.
Cron expressions are a standard for denoting frequencies. They allow you to schedule things to run every minute, every day, as well as more complex scenarios such as every monday at midnight, or the first day of the month, every month.
Examples:
Schedule | Expression |
---|---|
Every minute | * * * * * |
Every hour | 0 * * * * |
Every day (at midnight) | 0 0 * * * |
Every day (at 9:00am) | 0 9 * * * |
Every day (at 9:30am) | 30 9 * * * |
On the first of the month | 0 0 1 * * |
Every day (at midnight, mon-fri only) | 0 0 * * 1-5 |
Every monday (at midnight) | 0 0 * * 1 |
On the first day of every second month | 0 0 1 */2 * |
Every hour (between 9 and 5) | 0 9-17 * * * |