Operating contexts patterns around defining how a DAG should behave in dev staging prod & beyond
summary
Defines an operating context as a declared mode that deterministically changes a DAG’s shape or behavior using Airflow primitives. Implements contexts via environment variables and dag-returning functions, swaps connection_ids or appends schema suffixes, and adds fast mode limits or fixture-based sources for unit-like tests. Describes a crossover mode that reads production and writes to dev to exercise the last node of a 200-node DAG, speeding iteration without re-running the whole pipeline. Patterns are shown working with concrete code snippets and orchestration tweaks.
AI-written summary · about
