ADR-0066: The Dagster plugin¶
Architecture: Section 13, The Airflow plugin (the Dagster paragraph at its end)
Builds on ADR-0049 (protocol, graph --units),
ADR-0055 (dataset identity), ADR-0071
(partition spec) and ADR-0072 (--partition-key).
It is the Dagster item of the 1.5 milestone, decided on 2026-11-20 (roadmap section 6).
Context¶
Dagster models a pipeline as assets, asset checks and partitions, which line up with pipeloom's units, data tests and interval windows. The orchestrator protocol already gives every fact a plugin needs, and the partition work of ADR-0071 and ADR-0072 gave windows a key an orchestrator can pass.
Options¶
- A recipe over
graph --unitsand no plugin. Cheap, but every user would write the asset and check mapping. Rejected on 2026-11-20. - Run the whole project in one asset. Loses selection, lineage and per-model retries.
- One
multi_assetper unit. Chosen. A unit is the protocol's execution grain, so one materialization is one unit command. An ephemeral model has no unit of its own. - Import pipeloom in the Dagster process and call the runner. Shares the process with user code and the engines. Rejected: the protocol runs each unit in a child process, as the Airflow LOCAL mode does, and the load imports no model code.
- Dagster as an optional extra, as Airflow does. The package is useless without it, so it is a
hard dependency,
dagster>=1.10,<2. The floor is the oldest release withAssetSpecpartitions_def, blockingAssetCheckSpecandcontext.run, and the tests run on it. - Asset key as one URI string. Dagster keys are paths. Rejected for the parts of the identity.
Decision¶
New distribution pipeloom-dagster (module pipeloom_dagster, same version as the others,
pipeloom~=X.Y.0, extra pipeloom[dagster]). The core never imports it (an import-linter contract).
One public function, definitions(project_dir, target, *, manifest, vars), returns Definitions.
Load. It reads the plan from a manifest, or compiles the project (no model code is imported,
ADR-0003) and writes the manifest under <artifacts root>/dagster/<plan hash prefix>.manifest.json.
A manifest read back carries no selection, so every model is rendered. Units, parents and argv come
from build_unit_graph (ADR-0049); the
{project_dir} and {manifest} placeholders are filled and {run_id} is filled per run.
Assets. One asset per unit. Intermediate models are assets too (a multi_asset needs one
output, and they are persisted), unlike the unit graph's assets list. The key is project, target,
catalog (when set), schema and name, the same fields as the URI of ADR-0055, built by pipeloom.plan.identity.asset_path; a model without a
relation uses project, target and model name. Parent units are the deps. Sources are not assets.
Materialization. The step runs python -m pipeloom run with the unit argv, the run id
dagster-<dagster run id>, --orchestrator-id dagster_run_id=..., --data-tests true when the model
declares data tests, and --partition-key for a partitioned run. It reads the newest attempt file under
the artifacts root (from the project's config) for the outcome. --run-started-at and
--full-refresh are not passed. A non-zero exit raises Failure with the error code and message, except
PLQ303, where the data is written: the step reports the materialization and the failed checks.
Checks. One AssetCheckSpec per data test, named like the test. The result comes from the
expectations of scope table in the attempt row. A test is blocking when on_violation is fail and
blocking is not false: the spec is blocking and a failure has severity ERROR. Otherwise the severity
is WARN. A failed blocking result is yielded last, because Dagster 1.10 ends the step at the first one.
A test with no result in the row is not reported: Dagster shows it as not evaluated, never as passed.
Skips and retries. When the unit leaves no attempt file, or its newest attempt is skipped (the
completeness gate of ADR-0071, upstream_incomplete), the step raises Failure with the skip reason and
the held back keys, and records no materialization and no check result. A unit that settles
up_to_date succeeds: Dagster records a materialization though no work ran. A model with retries gets
RetryPolicy(max_retries, delay=retry_delay); retry_on is applied per failure: with transient, a failure whose attempt error category is
permanent raises Failure(allow_retries=False) (present in Dagster 1.10.0), as the Airflow LOCAL operator
does with AirflowFailException; with any, or without an attempt file, Dagster retries.
Partitions. An interval model gets a TimeWindowPartitionsDefinition in UTC with the cron of its
grain, the grain-truncated begin as start and the partition format of ADR-0071 as fmt; its tokens
are valid strftime tokens, so Dagster's key is pipeloom's key. Dagster lists complete windows only, so
the partial current window is not offered. One run is one partition (no single-run backfill policy).
Limits. No finalize, no cancel grace, no --full-refresh, no source assets, no --plugin
specs. Each is additive later.
Version matrix. CI runs the tests on Dagster 1.10.0 (floor, Python 3.11) and the locked latest release. The plugin uses only the public API. Prefect announced it is acquiring Dagster Labs, so the upper bound is the major and the matrix is the guard.
Consequences¶
- The TPC-H polars example loads with nine assets, and one asset or one partition runs exactly one
unit or one window; tests cover this in process.
dagster devis a manual check. - Dagster is installed in the workspace environment, so every developer sync pulls it.
- A change to a model after the load needs a reload, since each unit checks the plan hash.
Provenance: designed from the public Dagster documentation and this project's protocol; no code was copied.
Status¶
Accepted
Date¶
2026-12-06