Skip to main content

Module planning

Module planning 

Source
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: since is the previous fire time, or initial_since on the DAG’s first fire time at or after start.
  • 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], from start (the moment the DAG was first stored, without one) up to end. With catchup off only the most recent such fire time gets a run; with it on every one does, in order. Either way at most max_active_runs runs 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.
PlanLimits
A plan’s bounds (decision 493).
RunTimes
A run’s time and window: it covers (since, planned_for].

Enums§

ManualRunError
A manual run that can’t be created.

Constants§

FOR_TOLERANCE
How far in the future --for may 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 catchup backlog with no max_active_runs limit continues in the next pass).

Functions§

manual_planned_for
The moment a manual run is for: requested (--for), or now.
runs_to_start
The queued runs to start with free places: manual, chained and event runs first, then backfill, oldest first within each.