Shally-Katariya commented on code in PR #59824:
URL: https://github.com/apache/airflow/pull/59824#discussion_r2648421335


##########
airflow-core/src/airflow/ui/src/pages/Dag/Dag.tsx:
##########
@@ -105,7 +105,10 @@ export const Dag = () => {
   );
 
   const { tabs: processedTabs } = useRequiredActionTabs({ dagId }, tabs, {
-    refetchInterval,
+    refetchInterval:
+      (dag?.active_runs_count ?? 0) > 0 || isStatePending(latestRun?.state)

Review Comment:
   Thanks for pointing this out!
   
   I’ve updated the condition to explicitly check that `latestRun` exists 
before calling `isStatePending`, as suggested.
   This ensures polling only happens when there are active runs or when a 
latest run exists in a pending state.
   
   Please let me know if this looks good now.
   



-- 
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]

Reply via email to