Skip to content

Conversation

@Pei-Cheng-Yu
Copy link
Contributor

WHY

close: #58335

HOW:

The DurationChart renders a “run duration” bar only when entry.end_date is present.
For Task Instance entries, end_date is null while the task is still running.
As a result, the Task Instance overview chart does not show a running bar, and it only renders after the task finishes.

This PR makes sure that entry.end_date is handled when it is null, if it is null we substitute end_date with the current time (dayjs().toISOString()).


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@boring-cyborg boring-cyborg bot added the area:UI Related to UI/UX. For Frontend Developers. label Nov 18, 2025
Copy link

@gvergnolle gvergnolle left a comment

Choose a reason for hiding this comment

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

It looks good to me, thank you!

@Pei-Cheng-Yu
Copy link
Contributor Author

Thanks for the review!!

@gvergnolle
Copy link

Thanks for the PR 🫶

@bbovenzi bbovenzi added this to the Airflow 3.1.4 milestone Nov 18, 2025
@bbovenzi bbovenzi merged commit 31a8636 into apache:main Nov 18, 2025
60 checks passed
aaron-wolmutt pushed a commit to aaron-wolmutt/airflow that referenced this pull request Nov 20, 2025
@ephraimbuddy ephraimbuddy added the type:bug-fix Changelog: Bug Fixes label Dec 1, 2025
ephraimbuddy pushed a commit that referenced this pull request Dec 2, 2025
ephraimbuddy pushed a commit that referenced this pull request Dec 3, 2025
Copilot AI pushed a commit to jason810496/airflow that referenced this pull request Dec 5, 2025
itayweb pushed a commit to itayweb/airflow that referenced this pull request Dec 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers. type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI: Last Task run duration doesn't show progress for running tasks

4 participants