Skip to content

Clearning + making task success and failed is not showing on grid without a refresh #53069

Closed

Description

@atuls4441

Apache Airflow version

3.0.3rc4

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

No response

What happened?

When user is clearing a task or changing the dagrun state, the updates are only reflected after user refreshes the page.

3.0.3rc4:

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

3.0.2:

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

What you think should happen instead?

No response

How to reproduce

Have any dag with a dagrun and try changing the state of a TI, the updated state is only reflected after user refreshes the page.

from airflow import AirflowException
from airflow.sdk import DAG
from airflow.decorators import task
from airflow.providers.standard.operators.bash import BashOperator
from airflow.exceptions import AirflowSkipException
from datetime import datetime, timedelta

with DAG(
    dag_id="expand_kwargs",
    doc_md="use expand_kwargs without a function",
    schedule=timedelta(days=30 * 365),
    start_date=datetime(1970, 1, 1),
    tags=["taskmap"]
) as expand_kwargs:

    @task
    def data():
        return [
            {"bash_command": "echo hello $USER", "env": {"USER": "foo"}},
            {"bash_command": "echo goodbye $USER", "env": {"USER": "bar"}},
        ]

    BashOperator.partial(task_id="two_tasks").expand_kwargs(data())

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
    kind:bug
    needs-triage
    on Jul 9, 2025
  2. added
    area:UI
    priority:medium
    on Jul 9, 2025
  3. atuls4441 commented on Jul 9, 2025

    @atuls4441
    ContributorAuthor

    This also impacts if user adding a note while clearing a TI, its only reflected after a refresh

    Screen.Recording.2025-07-09.at.2.52.41.PM.mov
  4. pierrejeambrun commented on Jul 9, 2025

    @pierrejeambrun
    Member

    This also impacts if user adding a note while clearing a TI, its only reflected after a refresh

    Not sure that this is a regression, can you confirm please?

  5. atuls4441 commented on Jul 9, 2025

    @atuls4441
    ContributorAuthor

    This also impacts if user adding a note while clearing a TI, its only reflected after a refresh

    Not sure that this is a regression, can you confirm please?

    Its not a regression.

  6. pierrejeambrun commented on Jul 9, 2025

    @pierrejeambrun
    Member

    Created a separate issue there:
    #53085

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

Metadata

Metadata

Labels

area:UIarea:corekind:bugneeds-triagepriority:medium

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions