Skip to content

Use start_date and end_date to calculate duration when duration is null for running taskinstance.#61898

Merged
guan404ming merged 1 commit into
apache:mainfrom
tirkarthi:gh61887
Feb 18, 2026
Merged

Use start_date and end_date to calculate duration when duration is null for running taskinstance.#61898
guan404ming merged 1 commit into
apache:mainfrom
tirkarthi:gh61887

Conversation

@tirkarthi
Copy link
Copy Markdown
Contributor

When the task instance is in running state the duration value is null in the database and response. For task instances in running state use start_date and current time since end_date is null for duration calculation.

Was generative AI tooling used to co-author this PR?

No

@boring-cyborg boring-cyborg Bot added the area:UI Related to UI/UX. For Frontend Developers. label Feb 14, 2026
@choo121600
Copy link
Copy Markdown
Member

choo121600 commented Feb 14, 2026

I think it looks like the CI failure might be unrelated to this PR.
The firefox backfill e2e test seems to be flaky 🤔

cc @vatsrahul1001

Copy link
Copy Markdown
Member

@guan404ming guan404ming left a comment

Choose a reason for hiding this comment

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

LGTM

@guan404ming guan404ming added this to the Airflow 3.1.8 milestone Feb 18, 2026
@guan404ming guan404ming merged commit edd97b4 into apache:main Feb 18, 2026
78 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

Backport failed to create: v3-1-test. View the failure log Run details

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
v3-1-test Commit Link

You can attempt to backport this manually by running:

cherry_picker edd97b4 v3-1-test

This should apply the commit to the v3-1-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

If you don't have cherry-picker installed, see the installation guide.

guan404ming pushed a commit to guan404ming/airflow that referenced this pull request Feb 18, 2026
…ration is null for running taskinstance (apache#61898)

(cherry picked from commit edd97b4)

Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
@guan404ming
Copy link
Copy Markdown
Member

Manual backport #62136

sjyangkevin pushed a commit to sjyangkevin/airflow that referenced this pull request Feb 18, 2026
potiuk pushed a commit that referenced this pull request Feb 18, 2026
…ration is null for running taskinstance (#61898) (#62136)

(cherry picked from commit edd97b4)

Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
choo121600 pushed a commit to choo121600/airflow that referenced this pull request Feb 22, 2026
Subham-KRLX pushed a commit to Subham-KRLX/airflow that referenced this pull request Mar 4, 2026
vatsrahul1001 pushed a commit that referenced this pull request Mar 4, 2026
…ration is null for running taskinstance (#61898) (#62136)

(cherry picked from commit edd97b4)

Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
dominikhei pushed a commit to dominikhei/airflow that referenced this pull request Mar 11, 2026
Ankurdeewan pushed a commit to Ankurdeewan/airflow that referenced this pull request Mar 15, 2026
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Task duration is missing in dag view while task is running.

3 participants