Skip to main content

Module runs

Module runs 

Source
Expand description

DAG runs: creating them, and what the scheduler reads to decide on new ones.

A scheduled run is unique per (DAG, planned_for) (a partial unique index), so a master that crashes after creating one can’t create it twice; manual, backfill, chained and event runs are exempt (see archive/PROJECT.md, Runs: manual runs, backfill and pausing).

Structs§

ActiveDag
A DAG the scheduler looks at: not removed, not in conflict, with a current version.
Held
Why a DAG is held: its file’s import error in its root’s current parse (decision 72).
NewRun
A run to create.
QueuedRun
A run waiting for max_active_runs.
RunOverview
What the scheduler needs of every DAG’s runs, read at once for a whole round (Database::run_overview): a few queries, however many DAGs there are (B12).

Statics§

NO_PARAMS
The parameters of a run of a DAG that takes none.