Skip to main content

Module schedule_ticker

Module schedule_ticker 

Source
Expand description

Unified schedule executor for all workflow schedules.

All schedules live in the database – both those created via the REST API and those declared by a [WorkflowHandler::schedule()]. At server startup, call sync_handler_schedules to reconcile handler-declared schedules, then spawn ScheduleTicker::run which polls [claim_due_schedules] and creates a run for each claimed schedule.

Structs§

ScheduleTicker
Periodic task that fires DB-persisted schedules.

Constants§

DEFAULT_TICK_INTERVAL
How often the ticker checks for due schedules.