Skip to content

API: Add bulk update to mark Dag runs as success/failed#67948

Merged
bbovenzi merged 4 commits into
apache:mainfrom
astronomer:feat/bulk-mark-dag-runs
Jun 8, 2026
Merged

API: Add bulk update to mark Dag runs as success/failed#67948
bbovenzi merged 4 commits into
apache:mainfrom
astronomer:feat/bulk-mark-dag-runs

Conversation

@pierrejeambrun

@pierrejeambrun pierrejeambrun commented Jun 3, 2026

Copy link
Copy Markdown
Member

Implements the update action of the bulk Dag-run endpoint (PATCH /dags/{dag_id}/dagRuns) so multiple Dag runs can be marked as success / failed / queued in a single request, instead of one PATCH per run. Previously this action returned 405 ("not supported").

This is the backend for issue #63854 (bulk "mark as" for Dag runs); the UI wiring will follow in a separate PR.

related: #63854


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 4.8)

Generated-by: Claude Code (Opus 4.8) following the guidelines

@boring-cyborg boring-cyborg Bot added area:airflow-ctl area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. backport-to-airflow-ctl/v0-1-test labels Jun 3, 2026

@bbovenzi bbovenzi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one nit

Comment thread airflow-core/src/airflow/api_fastapi/core_api/routes/public/dag_run.py Outdated
patch_dag_run_state / patch_dag_run_note are imported by the route module, so
the leading underscore was misleading. Also rename the bulk-delete `keys` set
to `to_delete_keys` to mirror the bulk-update handler.

@choo121600 choo121600 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall looks good to me :)

@bbovenzi bbovenzi merged commit fe92cfd into apache:main Jun 8, 2026
146 checks passed
@bbovenzi bbovenzi deleted the feat/bulk-mark-dag-runs branch June 8, 2026 18:58
@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Backport failed to create: airflow-ctl/v0-1-test. View the failure log Run details

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
airflow-ctl/v0-1-test Commit Link

You can attempt to backport this manually by running:

cherry_picker fe92cfd airflow-ctl/v0-1-test

This should apply the commit to the airflow-ctl/v0-1-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

If you don't have cherry-picker installed, see the installation guide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:airflow-ctl area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants