Skip to content

Have tasks in graph view show % of total execution time for that run? #62935

Closed

Description

@match-gabeflores

Description

In graph view, show the % of that tasks' execution time compared to total execution time of the dagrun. I've also seen other cases where a small bar graph is shown in the task rectangle but I think % is probably good enough.

it would be really helpful to see at a glance from the graph view which tasks are taking the longest.

https://airflow.apache.org/docs/apache-airflow/stable/_images/dag_run_graph1.png

Use case/motivation

for quickly triaging a long running dagrun

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    kind:feature
    needs-triage
    on Mar 5, 2026
  2. added
    area:UI
    on Mar 5, 2026
  3. tirkarthi commented on Mar 8, 2026

    @tirkarthi
    Contributor

    Does a gantt view help here in finding the task instance duration distribution among a dagrun?

    https://www.astronomer.io/docs/learn/airflow-ui#dag-views

    Image
  4. Prajwal7842 commented on Mar 8, 2026

    @Prajwal7842
    Contributor

    Suggestion: We have some white space below the gantt view. My proposal is to use that instead and have a line chart mapping the duration of each task. (show duration of each task as a separate line in the chart). This could be like an observability section where user can play around with different metrics and see trends ?
    This way, it would be helpful to debug any anomalies etc.

  5. removed
    needs-triage
    on Mar 11, 2026
  6. bbovenzi commented on Mar 11, 2026

    @bbovenzi
    Contributor

    This dag in question has only three tasks but other dags have 10000 tasks so addign space below the gantt isn't necessarily reliable.

    We totally should add more charts to the Overview tab though!

  7. match-gabeflores commented on Mar 11, 2026

    @match-gabeflores
    ContributorAuthor

    Does a gantt view help here in finding the task instance duration distribution among a dagrun?

    It's helpful but sometimes it's easier to look at the graph view for more complicated dags (with branching, etc).

    in ssms (unrelated to orchestration but might be helpful), they have a percentage in execution plans in a graph view. implementation is up to you all (small line graph, or percentages or other).

    Image
  8. eddiesr93 commented on Jul 22, 2026

    @eddiesr93
    Contributor

    Following up on the idea of more charts on the Overview tab. Here is a Slowest tasks chart: for a run, it ranks the tasks by how long they took, colours each bar by state, and labels it with the duration and its share of the run. It shows the top 10, so it stays readable from 3 tasks up to thousands.

    Rendered in the real Dag Overview with mock data, light and dark:

    Slowest tasks chart, dark mode

    Slowest tasks chart, light mode

    Does this direction look right? If so, I will open a PR. Happy to adjust where it lives (Dag Overview or a single run's page) and whether it summarises one run or an average across recent runs, based on what you prefer.


    Drafted-by: Claude Code (Opus 4.8); reviewed by @eddiesr93 before posting

  9. match-gabeflores commented on Jul 22, 2026

    @match-gabeflores
    ContributorAuthor

    Very helpful! Yes, something like that would help determine bottlenecks and tasks to review

  10. eddiesr93 commented on Jul 23, 2026

    @eddiesr93
    Contributor

    Opened #70305 with an aggregate take: median duration per task across recent runs, on the Dag Overview.


    Drafted-by: Claude Code (Opus 4.8); reviewed by @eddiesr93 before posting

  11. bbovenzi commented on Oct 1, 2026

    @bbovenzi
    Contributor

    Closing since we added the new charts

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:UIkind:feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions