这是indexloc提供的服务,不要输入任何密码
Skip to content

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

@gvergnolle

Description

@gvergnolle

Apache Airflow version

3.1.3

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

No response

What happened?

When a task is in running state, the screen that shows past/current tasks runs duration doesn't update. It is useful to get an idea how it's doing compared to previous run or get an idea of when it will finish.

What you think should happen instead?

The graph should update to reflect the current duration of the task, similar to the DAG Run graph.

How to reproduce

Here's a simple DAG and a video to demonstrate the steps for reproduction.

import time
import pendulum
from airflow.sdk import (
    task,
    DAG,
)

with DAG(
    dag_id="test",
    schedule="@daily",
    catchup=True,
    start_date=pendulum.datetime(2025, 11, 1),
    max_active_runs=1,
    is_paused_upon_creation=True,
) as dag:

    @task()
    def sleep_task():
        time.sleep(10)

    sleep_task()
Screen.Recording.2025-11-14.at.3.53.14.PM.mov

Operating System

Debian GNU/Linux 12 (bookworm)

Versions of Apache Airflow Providers

apache-airflow-providers-standard==1.9.1

Deployment

Docker-Compose

Deployment details

No response

Anything else?

This is just a hint... I wonder if it's related to the fact that the running task doesn't update its duration while it's running. It's only defined once the task stops...

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    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 yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions