Schedule types
One-shot
Fires once at a specific time. Mission status is set to
scheduled until it triggers, then moves to active.Recurring
Fires on every cron tick. Mission status is set to
recurring and returns to recurring after each completion.One-shot schedule
Setschedule to an ISO 8601 timestamp:
draft -> scheduled -> active -> completed.
If a one-shot mission fails, it can be retried manually. The scheduler will not re-trigger it automatically.
Recurring schedule
Setschedule to a cron expression:
draft -> recurring -> active -> recurring (on each tick).
After endDate, the mission moves to completed and stops scheduling new runs. The executionCount field tracks how many times the mission has run.
Cron syntax
Standard 5-field cron expressions:Supported syntax
| Syntax | Example | Meaning |
|---|---|---|
| Numbers | 30 9 * * * | 9:30 AM every day |
| Ranges | 0 9-17 * * * | Every hour from 9 AM to 5 PM |
| Steps | */10 * * * * | Every 10 minutes |
| Lists | 0 9 * * 1,3,5 | 9 AM on Mon, Wed, Fri |
| Wildcards | * * * * * | Every minute |
Common schedule examples
Common schedule examples
| Expression | Description |
|---|---|
0 9 * * 1-5 | Weekdays at 9 AM |
0 0 * * * | Midnight daily |
0 */6 * * * | Every 6 hours |
30 14 1 * * | 2:30 PM on the 1st of each month |
0 9 * * 1 | Every Monday at 9 AM |
*/30 * * * * | Every 30 minutes |
Not supported
Not supported
The following cron features are not supported:
@yearly,@monthly,@weekly,@daily,@hourlyshortcuts- Seconds field (6-field cron)
L(last day),W(nearest weekday),#(nth weekday) modifiers
End date
For recurring missions,endDate specifies when the schedule stops:
completed. Any in-progress run will finish normally.
Execution count
TheexecutionCount field is incremented each time a recurring mission fires. Use it to track how many runs have occurred:
Scheduler configuration
The scheduler runs as a background loop within the Polpo server.| Setting | Default | Description |
|---|---|---|
enableScheduler | true | Enable or disable the scheduler |
| Polling interval | 30 seconds | How often the scheduler checks for due missions |