Skip to content

Dagrun state badge needs a page refresh to reflect correct state #74703

Closed

Description

@atuls4441

Under which category would you file this issue?

Airflow Core

Apache Airflow version

3.4.0b1

What happened and how to reproduce it?

On Dag list page, trigger a dag manually and see badge state is not updated even after dagrun finishes, needs page refresh to update the badge state.

Screen.Recording.2026-10-14.at.1.34.53.PM.1.mov

What you think should happen instead?

Badge state should show correct state without page refresh.

Operating System

No response

Deployment

None

Apache Airflow Provider(s)

No response

Versions of Apache Airflow Providers

No response

Official Helm Chart version

Not Applicable

Kubernetes Version

No response

Helm Chart configuration

No response

Docker Image customizations

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 Oct 14, 2026
  2. changed the title [-]Dagrun state badges needs a page refresh to reflect correct state[/-] [+]Dagrun state badge needs a page refresh to reflect correct state[/+] on Oct 14, 2026
  3. added
    affected_version:3.4.0rc
    and removed
    needs-triage
    on Oct 14, 2026
  4. anzinmhd commented on Oct 14, 2026

    @anzinmhd
    Contributor

    Reproduced on Airflow 3.4.0b1: the latest-run badge remained queued after the run succeeded, and the run counters stayed stale until a page refresh.

    The Dag-list and run-count queries stop polling when a separate pending-run query returns no active runs, potentially missing the final state. Removing that gate preserves their existing fast/slow polling.

    Verified locally that the badge and counters update without refreshing. Added two regression tests that fail before the fix and pass afterward. I’m preparing a PR.

  5. added
    priority:medium
    on Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    affected_version:3.4.0rckind:bugpriority:medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions