We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98ff01e commit f3ff5c4Copy full SHA for f3ff5c4
comfy_api_nodes/apis/client.py
@@ -1105,7 +1105,7 @@ def _poll_until_complete(self, client: ApiClient) -> R:
1105
except Exception as e:
1106
# For other errors, increment count and potentially abort
1107
consecutive_errors += 1
1108
- if consecutive_errors >= max_consecutive_errors:
+ if consecutive_errors >= max_consecutive_errors or status == TaskStatus.FAILED:
1109
raise Exception(
1110
f"Polling aborted after {consecutive_errors} consecutive errors: {str(e)}"
1111
) from e
0 commit comments