Skip to content

Fix DAGs list page Last Run/Next Run going stale after runs complete - #70667

Open
bramhanandlingala wants to merge 1 commit into
apache:mainfrom
bramhanandlingala:fix/70663
Open

Fix DAGs list page Last Run/Next Run going stale after runs complete#70667
bramhanandlingala wants to merge 1 commit into
apache:mainfrom
bramhanandlingala:fix/70663

Conversation

@bramhanandlingala

Copy link
Copy Markdown
Contributor

Summary
The DAGs list page (/dags) stops auto-refreshing once none of the visible
DAGs has a run in a pending state. Since that's the normal resting
condition, "Last Run" and "Next Run" (and the Recent Tasks counts) go stale
and never update again until a manual page reload.

Root cause
useDags and useDagRunStateCounts each set refetchInterval: false
whenever no DAG on the current page is mid-run, permanently killing
polling. Every other page in the UI instead uses
useAutoRefresh({ checkPendingRuns: true }), which checks pending runs
globally and scales the interval back instead of disabling it.

Fix
Route both hooks through the same checkPendingRuns: true mechanism
already used elsewhere, instead of their own divergent, page-local gate.
No visual/markup changes — purely a polling-behavior fix.

closes: #70663

Was generative AI tooling used to co-author this PR?

  • Yes - Claude

Generated-by: Claude following the guidelines

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

Labels

area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DAGs list page "Last Run" and "Next Run" columns not updating

1 participant