The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
don't retry if API returns task failure (#8111)
Christian Byrnef3ff5c40db3b
diff --git a/comfy_api_nodes/apis/client.py b/comfy_api_nodes/apis/client.pyindex 838ff1e8d..62866216f 100644--- a/comfy_api_nodes/apis/client.py+++ b/comfy_api_nodes/apis/client.py@@ -1105,7 +1105,7 @@ class PollingOperation(Generic[T, R]):except Exception as e:# For other errors, increment count and potentially abortconsecutive_errors += 1- if consecutive_errors >= max_consecutive_errors:+ if consecutive_errors >= max_consecutive_errors or status == TaskStatus.FAILED:raise Exception(f"Polling aborted after {consecutive_errors} consecutive errors: {str(e)}") from e