Skip to content

"Max active runs" in DAG UI overcounts by including queued runs #69765

Description

@roykoand

Under which category would you file this issue?

Providers

Apache Airflow version

3.2.2

What happened and how to reproduce it?

The "Max active runs" counter in the DAG detail page header (displayed as "X of Y") counts both Running and Queued Dag runs. However, max_active_runs is only enforced by the scheduler against Running runs. This makes the UI misleading — after a backfill, the counter can show a number far exceeding the configured limit (e.g. 12 of 5), even though the scheduler is behaving correctly.

Image

What you think should happen instead?

The counter should show only Running Dag runs matching exactly what the scheduler enforces. A user looking at 3 of 5 should be able to interpret it as "3 slots taken, 2 available" — which is only true if queued runs are excluded.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:UIRelated to UI/UX. For Frontend Developers.kind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yet

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions