Skip to content

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

Closed

Description

@atuls4441

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

Activity

  1. added
    area:UIRelated to UI/UX. For Frontend Developers.
    on Sep 4, 2025
  2. added
    priority:mediumBug that should be fixed before next release but would not block a release
    and removed
    needs-triagelabel for new issues that we didn't triage yet
    on Sep 4, 2025
  3. steveahnahn commented on Sep 5, 2025

    @steveahnahn
    Contributor

    Will give this a try!

  4. guan404ming commented on Sep 12, 2025

    @guan404ming
    Member

    @steveahnahn Sorry, I went ahead and fixed this first since we’re close to the release and I want to get the Gantt chart related bugs fixed as soon as possible. If you’re willing, you could help test and review the PR, thanks!

  5. steveahnahn commented on Sep 12, 2025

    @steveahnahn
    Contributor

    No worries, thanks for picking it up, went through a busy cycle.

  6. ashb commented on Sep 24, 2025

    @ashb
    Member

    In the end of 2.x, it showed both attempts on the Gantt chart on the same row, so I don't think this is fixed yet.

  7. added this to the Airflow 3.1.1 milestone on Sep 24, 2025
  8. phanikumv commented on Oct 29, 2025

    @phanikumv
    Contributor

    @guan404ming would you like to check this?

  9. self-assigned this
    on Nov 4, 2025
  10. guan404ming commented on Nov 4, 2025

    @guan404ming
    Member

    Sure, I would check this one after I finish #50873.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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