This is an automated email from the ASF dual-hosted git repository.
pierrejeambrun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 1115cdf8c25 Fix AutoRefresh when only 1 dag run is running (#56623)
1115cdf8c25 is described below
commit 1115cdf8c252f82225b7f8880c31975ac61f3f16
Author: Pierre Jeambrun <[email protected]>
AuthorDate: Tue Oct 14 21:09:33 2025 -0700
Fix AutoRefresh when only 1 dag run is running (#56623)
---
airflow-core/src/airflow/ui/src/utils/query.ts | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/airflow-core/src/airflow/ui/src/utils/query.ts
b/airflow-core/src/airflow/ui/src/utils/query.ts
index 74cba9d30f1..6a0b072ca59 100644
--- a/airflow-core/src/airflow/ui/src/utils/query.ts
+++ b/airflow-core/src/airflow/ui/src/utils/query.ts
@@ -64,7 +64,8 @@ export const useAutoRefresh = ({
},
);
- const pendingRuns = checkPendingRuns ? (dagRunData?.dag_runs ?? []).length >
1 : true;
+ const pendingRuns = checkPendingRuns ? (dagRunData?.dag_runs ?? []).length
>= 1 : true;
+
const paused = Boolean(dagId) ? dag?.is_paused : false;
const canRefresh = autoRefreshInterval !== undefined && !paused &&
pendingRuns;