bramhanandlingala opened a new pull request, #70667:
URL: https://github.com/apache/airflow/pull/70667
**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?
- [X] Yes - Claude
Generated-by: Claude following [the
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]