This is an automated email from the ASF dual-hosted git repository.

pierrejeambrun pushed a commit to branch v3-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v3-1-test by this push:
     new 4444168f87c Fix AutoRefresh when only 1 dag run is running (#56623) 
(#56649)
4444168f87c is described below

commit 4444168f87cc0eb87b838325d9beac31f3d80b3f
Author: Pierre Jeambrun <[email protected]>
AuthorDate: Wed Oct 15 06:16:48 2025 -0700

    Fix AutoRefresh when only 1 dag run is running (#56623) (#56649)
    
    (cherry picked from commit 1115cdf8c252f82225b7f8880c31975ac61f3f16)
---
 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 10ca41df30d..f751f801081 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;

Reply via email to