dheerajturaga opened a new pull request, #72407: URL: https://github.com/apache/airflow/pull/72407
Adds an explicit `draining` scheduling state for Dags. Draining prevents scheduled, manual, asset-triggered, operator-triggered, and backfill Dag runs from being created while allowing task instances in existing runs to continue scheduling. The scheduler automatically moves a drained Dag to `paused` after its active runs finish. This keeps the existing `is_paused` API compatible while exposing the richer scheduling state through the REST API, CLI, and UI. It also includes the metadata migration, API client regeneration, audit logging, documentation, and focused test coverage. closes: #22006 Testing: - 31 focused backend tests passed in Breeze - 30 focused UI tests passed - UI lint and TypeScript checks passed - Pre-commit and manual prek stages passed - Migration round-trip validation passed - Selective checks request the full CI suite because the public API contract changed --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Codex (GPT-5) Generated-by: Codex (GPT-5) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) --- Drafted-by: Codex (GPT-5) (no human review before posting) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
