Expand description
The rules for run times and new runs (see archive/PROJECT.md, Native API: run time semantics, and Runs: manual runs, backfill and pausing).
- A run on a fire time covers one schedule period:
sinceis the previous fire time, orinitial_sinceon the DAG’s first fire time at or afterstart. - A manual run not on a fire time covers what happened since the nearest earlier run of any kind.
- The scheduler creates runs for fire times in
(last scheduled run, now], fromstart(the moment the DAG was first stored, without one) up toend. Withcatchupoff only the most recent such fire time gets a run; with it on every one does, in order. Either way at mostmax_active_runsruns run at a time; a fire time that finds no place is missed, and the same rules decide when a place frees up. - Queued runs (manual, chained, event, backfill) take the places left: manual, chained and event runs first, then backfill, oldest first within each.
Structs§
- Plan
- A DAG’s time trigger with what its rules need.
- Plan
Limits - A plan’s bounds (decision 493).
- RunTimes
- A run’s time and window: it covers
(since, planned_for].
Enums§
- Manual
RunError - A manual run that can’t be created.
Constants§
- FOR_
TOLERANCE - How far in the future
--formay be, for clock skew between the CLI and the master. - MAX_
RUNS_ PER_ PASS - The most runs the scheduler creates for one DAG in one pass (a
catchupbacklog with nomax_active_runslimit continues in the next pass).
Functions§
- manual_
planned_ for - The moment a manual run is for:
requested(--for), ornow. - runs_
to_ start - The queued runs to start with
freeplaces: manual, chained and event runs first, then backfill, oldest first within each.