Skip to content

Fix DAG details active runs count to exclude queued runs#69769

Open
Vishwaspatel2401 wants to merge 1 commit into
apache:mainfrom
Vishwaspatel2401:fix-active-runs-count-includes-queued
Open

Fix DAG details active runs count to exclude queued runs#69769
Vishwaspatel2401 wants to merge 1 commit into
apache:mainfrom
Vishwaspatel2401:fix-active-runs-count-includes-queued

Conversation

@Vishwaspatel2401

Copy link
Copy Markdown
Contributor

The "Max active runs" counter on the DAG details page ("X of Y") counts both running and queued DAG runs, but the scheduler only counts running runs when enforcing max_active_runs. After a backfill queues many runs, the UI counter can show a number far exceeding the configured limit even though the scheduler is behaving correctly.

This fixes the counter to only count running runs, matching what the scheduler actually enforces.

closes: #69765


Was generative AI tooling used to co-author this PR?
  • Yes — Partially

@Vishwaspatel2401 Vishwaspatel2401 force-pushed the fix-active-runs-count-includes-queued branch from a889546 to 5ae48ab Compare July 11, 2026 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant