eddiesr93 opened a new pull request, #70305:
URL: https://github.com/apache/airflow/pull/70305

   Adds a **Slowest tasks** chart to the Dag Overview tab: median duration per 
task across the runs in the selected time range, top 10, coloured by each 
task's latest state. Discussed in #62935, where adding more charts to the 
Overview tab was encouraged.
   
   Data comes from the existing task-instances endpoint (`success`/`failed` 
instances in the range), aggregated client side; no backend change.
   
   Dark and light, real runs (the red bar is a task whose latest instance 
failed):
   
   ![Slowest tasks chart, dark 
mode](https://raw.githubusercontent.com/eddiesr93/airflow/pr-62935-screenshots/chart-dark.png)
   
   ![Slowest tasks chart, light 
mode](https://raw.githubusercontent.com/eddiesr93/airflow/pr-62935-screenshots/chart-light.png)
   
   A 14-task Dag, capped at the top 10:
   
   ![A Dag with 14 tasks, top ten 
shown](https://raw.githubusercontent.com/eddiesr93/airflow/pr-62935-screenshots/manytasks-dark.png)
   
   Tooltip shows the median and how many instances it is based on:
   
   ![Tooltip with median and run 
count](https://raw.githubusercontent.com/eddiesr93/airflow/pr-62935-screenshots/tooltip-dark.png)
   
   In context next to the existing run-duration chart:
   
   ![Dag Overview with both charts, 
dark](https://raw.githubusercontent.com/eddiesr93/airflow/pr-62935-screenshots/context-dark.png)
   
   ![Dag Overview with both charts, 
light](https://raw.githubusercontent.com/eddiesr93/airflow/pr-62935-screenshots/context-light.png)
   
   A Dag with no completed instances in the range:
   
   ![Empty 
state](https://raw.githubusercontent.com/eddiesr93/airflow/pr-62935-screenshots/empty-dark.png)
   
   related: #62935
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 4.8)
   
   Generated-by: Claude Code (Opus 4.8) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   
   ---
   
   Drafted-by: Claude Code (Opus 4.8); reviewed by @eddiesr93 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]

Reply via email to