Skip to content

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

@atul-astronomer

Description

@atul-astronomer

Apache Airflow version

main (development)

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

No response

What happened?

Image Image

What you think should happen instead?

No response

How to reproduce

For the below dag, create a dagrun and clear dagrun, notice gantt view for 2 task tries:

import datetime

from airflow.providers.standard.operators.bash import BashOperator
from airflow.providers.standard.operators.python import PythonOperator
from airflow.sdk import DAG


def fetch_xcom(**kwargs):
    return kwargs["ti"].xcom_pull(key="choice")

def push_xcom(**kwargs):
    kwargs["ti"].xcom_push(key="choice", value="foo")

dag = DAG(
    'test_api_dag',
    start_date=datetime.datetime(2025, 8,25),
    schedule='@daily',
    is_paused_upon_creation=False,
    catchup=True,
)

hello_task = BashOperator(
    task_id="hello",
    bash_command="echo hello",
    dag=dag
)

bye_task = BashOperator(
    task_id="bye",
    bash_command="echo bye",
    dag=dag
)

hello_task >> bye_task

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

Assignees

Labels

area:UIRelated to UI/UX. For Frontend Developers.kind:bugThis is a clearly a bugpriority:mediumBug that should be fixed before next release but would not block a release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions