Goal
Run a Function at regular intervals (cleanup jobs, report generation, health checks) using the Cron worker.Steps
1. Enable the Cron worker
iii-config.yaml
2. Register the Function
- Node / TypeScript
- Python
- Rust
cron-task.ts
3. Register the Cron trigger
- Node / TypeScript
- Python
- Rust
cron-trigger.ts
expression field uses a 7-field cron format (second minute hour day month weekday year).
Common schedules
Result
The Function executes automatically on the defined schedule. The Engine handles scheduling, no external cron daemon needed.For advanced scheduling options, see the Cron worker reference.