Skip to content

Triggering a new DAG run sets the previous DAG run's duration to 0 in grid view until the new run completes #53074

@atul-astronomer

Description

@atul-astronomer

Apache Airflow version

3.0.3rc4

If "Other Airflow 2 version" selected, which one?

No response

What happened?

Triggering a new DAG run sets the previous DAG run's duration to 0 until the new run completes.

3.0.3rc4:

Screen.Recording.2025-07-09.at.1.07.40.PM.mov

3.0.2:

Screen.Recording.2025-07-09.at.1.10.59.PM.mov

What you think should happen instead?

No response

How to reproduce

Have any dag with multiple tasks, have a few dagruns and then trigger a new dagrun, notice previous dagrun duration bar in grid view is marked a 0 till the time new dagrun is completed.

from airflow.sdk import DAG
from pendulum import today
from airflow.providers.standard.operators.python import PythonOperator

args = {
    "owner": "airflow",
    "start_date": today('UTC').add(days=-2),
}
dag = DAG(
    dag_id="Python_operator_test",
    default_args=args,
    schedule=None,
    tags=["core"],
)


def run_this_func():
    print("hello")


def run_this_func2():
    print("hi")


with dag:
    run_this_task = PythonOperator(
        task_id="run_this",
        python_callable=run_this_func,
    )
    run_this_task2 = PythonOperator(task_id="run_this2", python_callable=run_this_func2)
    run_this_task3 = PythonOperator(task_id="run_this3", python_callable=run_this_func)


run_this_task >> run_this_task2 >> run_this_task3

Operating System

Linux

Versions of Apache Airflow Providers

No response

Deployment

Other

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Labels

area:UIRelated to UI/UX. For Frontend Developers.area:corekind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yetpriority:mediumBug that should be fixed before next release but would not block a release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions