bbovenzi commented on code in PR #56404:
URL: https://github.com/apache/airflow/pull/56404#discussion_r2417364234


##########
airflow-core/src/airflow/ui/src/pages/HITLTaskInstances/HITLTaskInstances.tsx:
##########
@@ -148,6 +152,19 @@ export const HITLTaskInstances = () => {
     state: effectiveResponseReceived === "false" ? ["deferred"] : undefined,
     taskId,
     taskIdPattern,
+  }, undefined, {
+    // Only continue auto-refetching when filtering for unreceived responses
+    // and at least one TaskInstance is still deferred without a response.
+    refetchInterval: (query) => {
+      const isFilteringUnreceived = effectiveResponseReceived === "false";
+      if (!isFilteringUnreceived) return false;

Review Comment:
   We should make this based only on the `query.state.data`



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