Skip to content

Display all task tries in Gantt chart#61058

Merged
bbovenzi merged 3 commits into
apache:mainfrom
guan404ming:gantt-ti-try
Jan 30, 2026
Merged

Display all task tries in Gantt chart#61058
bbovenzi merged 3 commits into
apache:mainfrom
guan404ming:gantt-ti-try

Conversation

@guan404ming

Copy link
Copy Markdown
Member

Related Issue

Close #55246

Why

Gantt always the latest TI try. But it should show all history tries like AF2

How

  • Backend: New /ui/gantt/{dag_id}/{run_id} endpoint combining current task instances with historical tries via union_all
  • Frontend: Transform data to show multiple tries per task row with try number in tooltip
Screen.Recording.2026-01-26.at.3.05.09.PM.mov

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)
    Claude Code with Opus 4.5

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@boring-cyborg boring-cyborg Bot added area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. labels Jan 26, 2026
@guan404ming guan404ming marked this pull request as ready for review January 26, 2026 14:39
@jason810496 jason810496 added this to the Airflow 3.2.0 milestone Jan 26, 2026
@guan404ming guan404ming force-pushed the gantt-ti-try branch 2 times, most recently from 7e4b217 to ade0611 Compare January 27, 2026 06:48

@bbovenzi bbovenzi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking promising!

Comment thread airflow-core/src/airflow/ui/src/queries/useClearTaskInstances.ts
Comment thread airflow-core/src/airflow/ui/src/layouts/Details/Gantt/utils.ts

@pierrejeambrun pierrejeambrun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Backend code looks good. Thanks

Comment thread airflow-core/src/airflow/ui/src/layouts/Details/Gantt/utils.ts Outdated
@bbovenzi bbovenzi merged commit c1f70a3 into apache:main Jan 30, 2026
129 checks passed
morelgeorge pushed a commit to morelgeorge/airflow that referenced this pull request Feb 1, 2026
* Display all task tries in Gantt chart

* Add try_number on handleBarClick

* Refactor Gantt chart data transformation
shashbha14 pushed a commit to shashbha14/airflow that referenced this pull request Feb 2, 2026
* Display all task tries in Gantt chart

* Add try_number on handleBarClick

* Refactor Gantt chart data transformation
jason810496 pushed a commit to abhijeets25012-tech/airflow that referenced this pull request Feb 3, 2026
* Display all task tries in Gantt chart

* Add try_number on handleBarClick

* Refactor Gantt chart data transformation
jhgoebbert pushed a commit to jhgoebbert/airflow_Owen-CH-Leung that referenced this pull request Feb 8, 2026
* Display all task tries in Gantt chart

* Add try_number on handleBarClick

* Refactor Gantt chart data transformation
choo121600 pushed a commit to choo121600/airflow that referenced this pull request Feb 22, 2026
* Display all task tries in Gantt chart

* Add try_number on handleBarClick

* Refactor Gantt chart data transformation
Subham-KRLX pushed a commit to Subham-KRLX/airflow that referenced this pull request Mar 4, 2026
* Display all task tries in Gantt chart

* Add try_number on handleBarClick

* Refactor Gantt chart data transformation
Ankurdeewan pushed a commit to Ankurdeewan/airflow that referenced this pull request Mar 15, 2026
* Display all task tries in Gantt chart

* Add try_number on handleBarClick

* Refactor Gantt chart data transformation
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.

Gantt view is always showing the latest dagrun data even if user selects previous task try

4 participants