onSchedule starts an automation at recurring times. Use it for reports,
maintenance, synchronization, and other work that does not depend on an
external provider event.
Example
automations/weekday-report.automation.ts
Options
The schedule has one-minute precision. Six-field expressions with seconds are
not accepted.
Trigger data
Returns aSignal<ScheduleEvent> for each matching occurrence:
scheduledAt is the exact scheduled minute represented by the event. Use it
instead of the automation’s wall-clock start time when a delayed execution
still needs to identify its intended occurrence.
Behavior
- Schedule configuration is validated during deployment.
- IANA time zones follow local daylight-saving-time transitions.
- Only the active deployment receives scheduled events.
- Retries for the same schedule and timestamp are deduplicated.