Orchestration
Job groups
Run dependent jobs as one coordinated run with failure policies and version pinning.
A job group runs several jobs together in dependency order. Write one .toml file per group under
orchestration/job_groups/, with a name ending in _job_group:
name = "daily_orders_job_group"description = "Stage orders, then build the marts"jobs = ["staging_orders_job", "orders_marts_job"]schedule = { cron = "0 3 * * *", timezone = "UTC" }A group accepts name, description, jobs, pin_version, [dependencies], and the same
targets, owner, overlap, pools, schedule, and [retry] keys as a
job. Members must be build jobs (never other groups, clone
jobs, or janitor jobs).
Dependency ordering
Section titled “Dependency ordering”A member job waits for another member when it reads a node that member builds, directly or through
unselected nodes (such as a source between a loader job and models). It waits only for the nearest
upstream member(s) and never waits on another member that builds the same node. Dependency cycles
between members fail sqb compile with D017.
Give seeds and shared upstream nodes their own job so downstream members wait only on that job.
Each member runs as its own build, so members can differ on node-scoped settings, but all members
declared together on a target must agree on vars and changed (which affect compiled SQL);
otherwise compilation fails with D017.
Failure handling
Section titled “Failure handling”[dependencies] controls how downstream members react when an upstream member fails:
name = "nightly_job_group"description = "Orders, inventory and the partner export"jobs = ["orders_job", "inventory_job", "partner_export_job"]schedule = { cron = "0 21 * * *", timezone = "UTC" }
[dependencies]wait_for = "job"on_failure = "partial"
[dependencies.partner_export_job]on_failure = "skip"| Setting | Value | Meaning |
|---|---|---|
wait_for |
job (default) |
A member starts once the jobs it reads from finish |
on_failure |
partial (default) |
Build unaffected nodes; skip nodes downstream of failed ones |
skip |
Do not run the member; mark it and all its nodes skipped |
|
run |
Run every node of the member regardless |
[dependencies.<job>] overrides on_failure for one member inside this group.
Member outcomes, retries, and cancellation
Section titled “Member outcomes, retries, and cancellation”skipped: raises no failure alert and firesrun_eventsensors withRunEventKind.SKIPPED. Downstream members treat it as a failure.blocked: a member that skipped nodes only because an upstream member failed endsblocked(not retried, no failure alert, firesRunEventKind.BLOCKED). If the member also fails on its own, it endsfailed.cancelled: cancelling a queued or running member (POST /api/control/runs/cancel-memberorsqb admin cancel-run, requiringrun.cancel) ends itcancelled, triggers downstreamskip/blockedhandling in everyon_failuremode (includingrun), and ends the groupcancelledunless another member failed.- Member retries: a member’s own
[retry]runs inside the group run before downstreamon_failureapplies, while the group keeps its pool slots. Sensors and alerts see only the member’s final attempt. - Manual member retry: while a group run is active, someone with
run.reruncan retry an ended member (POST /api/control/runs/retry-memberwithscope:unfinished_nodesorwhole_job). On success, it also resumes downstream members blocked by that failure (requiringrun.rerunon each resumed member). - Group retries: a group’s own
[retry]runs as a final sweep after afailedgroup run ends, queuing one linked rerun of all failed, cancelled, skipped, and unreached nodes.
Version pinning
Section titled “Version pinning”By default (pin_version = false), each member starts on the newest compatible published snapshot,
so a fix published mid-group reaches members that have not started yet. Set pin_version = true to
run every member on the snapshot the group run started on:
name = "daily_orders_job_group"description = "Stage orders, then build the marts"jobs = ["staging_orders_job", "orders_marts_job"]pin_version = truepin_version |
Snapshot each member uses |
|---|---|
false (default) |
Newest published snapshot that can run the member when it starts |
true |
The snapshot the group run started on |
- A running member finishes on its snapshot; a retry starts on the newest compatible snapshot.
- A snapshot is skipped (with a warning in the group log) if it removes the group or member, drops a queued node, or widens what the job writes or replays.
- If a later member reads a node an earlier member built on an older snapshot that has since changed, it still runs and lists the input as a stale read.