Skip to content

Add deadline order_by option to Dag runs list API - #71779

Draft
pierrejeambrun wants to merge 1 commit into
apache:mainfrom
astronomer:add-deadline-order-by-list-dagruns
Draft

Add deadline order_by option to Dag runs list API#71779
pierrejeambrun wants to merge 1 commit into
apache:mainfrom
astronomer:add-deadline-order-by-list-dagruns

Conversation

@pierrejeambrun

Copy link
Copy Markdown
Member

Adds deadline as an order_by option for the Dag runs list endpoints (GET /dags/{dag_id}/dagRuns and POST /dags/~/dagRuns/list), ordering runs by their earliest attached deadline.

Revives #60861 (reviewed and approved, but went stale from inactivity).

closes: #51758

Note: deadline orders correctly under the default offset pagination and the batch endpoint. Since it resolves to a computed subquery rather than a DagRun column, ordering by it under cursor pagination falls under the existing column-form SortParam limitation.


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

Deadline-driven views need to surface the most urgent runs first, which the list endpoints could not express because runs could only be ordered by their own columns and not by the deadlines attached to them.
@boring-cyborg boring-cyborg Bot added area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. labels Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add deadline order_by in list_dagruns

1 participant