Repository navigation
UI: Add a slowest tasks chart to the Dag Overview - #70305
Merged
bbovenzi merged 3 commits intoJul 28, 2026
Merged
Conversation
Finding which tasks dominate a Dag's runtime currently means opening the Gantt or duration pages run by run. A ranked median-per-task view on the Overview tab answers it at a glance, and stays readable for Dags with thousands of tasks since it only shows the top ten.
eddiesr93
requested review from
bbovenzi,
choo121600,
guan404ming,
pierrejeambrun,
ryanahamilton,
shubhamraj-git and
vatsrahul1001
as code owners
July 23, 2026 15:02
1 of 2 tasks
bbovenzi
requested changes
Jul 23, 2026
Contributor
|
Thanks so much! Let's either swap to "Slowest task instances" or create a custom API endpoint to provide us the data we need for "Slowest Tasks" |
Review asked to defer per-task median aggregation to a future /ui endpoint. Until then the chart lists individual task instances sorted by the API rather than aggregating them client-side.
Contributor
Author
|
Swapped to individual task instances sorted by duration in the API, added the enabled check and moved the fallback through getComputedCSSVariableValue. |
bbovenzi
reviewed
Jul 27, 2026
Contributor
|
Thanks. Could you please update the screenshots in the description? |
The chart lists individual instances, so one task can take several bars with identical labels. Review asked for run timestamp information to tell them apart.
Contributor
Author
|
Added the run timestamp under the task name. Screenshots updated. |
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.
Adds a Slowest task instances chart to the Dag Overview tab: the ten
longest-running task instances in the selected time range, coloured by state.
Discussed in #62935, where adding more charts to the Overview tab was encouraged.
Data comes from the existing task-instances endpoint, sorted by duration by the
API; no backend change and no client-side aggregation. Aggregating a median per
task is left for the custom /ui endpoint suggested in review.
The same task is often slow in more than one run, so each label carries the run
it belongs to.
Light and dark, real runs:
Tooltip shows the full duration:
In context next to the existing run-duration chart:
A Dag with no completed instances in the range:
related: #62935
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Opus 4.8) following the guidelines
Drafted-by: Claude Code (Opus 4.8); reviewed by @eddiesr93 before posting