Schedules run on an always-on, pull-based Server running Dagster's scheduler
stage and prod each get a Server: an always-on machine running Dagster's scheduler and web page next to the Warehouse, started with docker compose --profile server up from the generated Project. A Pipeline's Schedule is one schedule: line in its Pipeline file (plain words such as daily at 02:00, or cron), read in the Project's time zone (adops.yaml, default UTC), and starts the whole Pipeline; dev and Branch Environments never run on a Schedule. The Server pulls the Project from Git itself (main for stage, the latest release tag for prod) and switches to a new version only after adops validate passes; otherwise it keeps the last good version and alerts. This changes ADR-0005, where Dagster ran only in-process per adops run, and closes the horizon-1 blocker on how Pipelines run on a schedule.
Considered Options: a GitHub Actions cron (a GitHub-hosted runner cannot reach a localhost Postgres or a DuckDB file Warehouse, and stage/prod secrets would live in GitHub); GitHub pushing to the Server over SSH (the Server must accept inbound connections); a self-hosted GitHub runner on the Server (a forked PR could run code on it); a bare adops loop or system cron (no run history or page a non-technical user can look at).
Consequences:
- Accepting a new version on a Server also runs the Pipelines whose files changed right away, so stage's Step Fingerprints stay current for Branch Environments; a Pipeline with no Schedule runs only then.
- One run at a time per Server (other Pipelines queue); a run due while the same Pipeline is still running is skipped; after downtime the Server runs once to catch up, not once per missed run.
- Only Source/Warehouse-unreachable failures are retried (3 times, 5 minutes apart); a failed Check or a Breaking Change is never retried, because it gives the same result for the same data.
- Failures are shown on the Dagster page and sent to Slack/email through a webhook Secret Reference, sanitized like every other error.
- The web page allows only "Run now" and "Pause"; the Schedule itself changes only through Git, and the Assistant has no access to a Server (ADR-0009).
Clarification (2026-11-20):
- Until horizon 8, a Server runs the Project version in its bind-mounted folder instead of pulling it from Git. The Git pull, the switch after
adops validatepasses, and Git-based acceptance of Breaking Changes (ADR-0015) come with horizon 8. - Dagster's open-source web page has no per-action permissions, so it cannot be limited to "Run now" and "Pause". Instead it is bound to 127.0.0.1 (
DAGSTER_WEBSERVER_HOST), so only someone on the Server machine can open it.
Clarification (2026-11-21):
- The Server no longer pulls from Git or polls for new versions. The generated merge and release workflows (
adops-stage.yml,adops-prod.yml) run on a self-hosted runner on the Server machine (ADR-0016). They validate a fresh checkout, then push that version into the Server Project folder with a localgit fetchandgit checkout --detach, then reload Dagster's code location. Restarting the Server was rejected because it kills runs in progress; the daemon picks up Schedule changes within about 60 seconds of the reload. - Accepting a new version on stage runs every Pipeline (
adops run --all --env stage), not only those whose files changed; prod does the same on a release. - The rejected option "a self-hosted GitHub runner on the Server (a forked PR could run code on it)" is now the chosen one, with a fork policy that answers that risk (ADR-0016).
Clarification (2026-11-23):
- Git-based acceptance of Breaking Changes (ADR-0015) did not come with horizon 8. It shipped in horizons 13 and 14: a committed accepted-change record in
pipelines/accepted/is applied by stage and prod on their next run, andadops accept-schemain dev writes that record.adops accept-schema --env stage|prodonly reads those Environments and writes the record, so nobody needs to run it on the Server.
Clarification (2026-11-27):
- Deploys rerun only Changed Steps. Accepting a new version on stage or prod now runs
adops run --all --changed --env stage|prod: each Pipeline reruns from its first Step whose Step Fingerprint differs from that Environment's last successful run, plus every Step after it, and a Pipeline with no Changed Step is not run (its Steps printunchanged in <env>). This replaces the 2026-11-21 rule that every deploy runs every Pipeline. - A scheduled Pipeline whose Steps did not change no longer refreshes on merge or release; its next Schedule refreshes it. A Pipeline with no Schedule still runs in full on every deploy, because the deploy is the only time it runs. A Pipeline also runs in full when it has no saved fingerprints yet, when the Environment's settings changed, or when it has an Accepted-Change Record the Environment has not run with yet.
adops run --all --env stage|prodtyped by hand still runs every Step of every Pipeline.
Clarification (2026-11-29):
- The Server also runs a Freshness Checker: a Dagster sensor,
adops_freshness_check, that runs everyADOPS_FRESHNESS_CHECK_SECONDS(default 60). It sends one Stale Alert when a table withstale_afterhas not been Loaded within its Stale Limit, then nothing until the table Loads again, then one Recovery Notice, through the same webhook Secret Reference as failure alerts. stale_afterneeds a Schedule on its Pipeline; without one,adops validate,adops runand the Server refuse it. A deploy that reruns nothing does not count as a Load.- The sensor's on/off state lives in the Dagster database like a Schedule's, so on a machine where stage and prod share one Dagster database, pausing the sensor on stage leaves it paused for prod too. The Alerted State lives in each Environment's Warehouse, so it is never shared.
Clarification (2026-11-30):
- "One run at a time per Server" now holds only on DuckDB. On a Postgres Warehouse each Pipeline has its own Run Slot: runs of different Pipelines go at the same time (at most 4), and the same Pipeline never runs twice at once.
server/dagster.yamllimits runs peradops/pipelinetag (the Pipeline'sname:) and peradops/serialtag, which only DuckDB jobs carry. A run due while the same Pipeline is still running is still skipped. adops validaterefuses two Pipeline files with the samename:and two Pipelines that sync the same Source table, so parallel runs never share a lock identity or a raw table.