Show task state counts for the latest Dag run on the Dags list page#69619
Open
yuseok89 wants to merge 1 commit into
Open
Show task state counts for the latest Dag run on the Dags list page#69619yuseok89 wants to merge 1 commit into
yuseok89 wants to merge 1 commit into
Conversation
yuseok89
force-pushed
the
feature/66947-dag-list-latest-run-ti-state-counts
branch
5 times, most recently
from
July 9, 2026 15:49
2e50f45 to
cb0a135
Compare
yuseok89
force-pushed
the
feature/66947-dag-list-latest-run-ti-state-counts
branch
from
July 9, 2026 15:55
cb0a135 to
48872f8
Compare
yuseok89
marked this pull request as ready for review
July 9, 2026 23:47
yuseok89
requested review from
bbovenzi,
bugraoz93,
choo121600,
ephraimbuddy,
guan404ming,
henry3260,
jason810496,
pierrejeambrun,
rawwar,
ryanahamilton,
shubhamraj-git and
vatsrahul1001
as code owners
July 9, 2026 23:47
Contributor
|
Thanks for opening this. Let's make sure dags list performance issues are resolved first. Like in this PR: #69806. Only after that should we add any more complexity to the dags list |
Contributor
Author
Makes sense, thanks. I'll take a look at the dags list performance work too and see if there's anything I can help with there. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes: #66947
Each Dag card and table row on the Dag list page now shows the task-instance state breakdown of that Dag's most recent run, as clickable badges. Clicking a badge opens that run's task list filtered by the state, restoring the scan-then-click "Recent Tasks" workflow from Airflow 2.
What changed
GET /api/v2/ui/dags/latest_run_task_instance_state_counts. For the requested Dag IDs it resolves each Dag's latest run and counts its task instances grouped by state.dag_idsis bounded to the API max page limit. A run's task instances are bounded by the Dag's task structure, so the per-state counts are exact.no_status.Unlike the run-state badges from #67242 (which count a Dag's runs by state), these count the task instances of its single latest run.
Demo
Screen.Recording.2026-07-08.at.11.08.18.PM.mov
Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.