ComfyUI/comfy_api_nodes/util
Glary-Bot b9abd21cb7 feat: make API node retry parameters configurable via environment variables
Adds COMFY_API_MAX_RETRIES, COMFY_API_RETRY_DELAY, and
COMFY_API_RETRY_BACKOFF environment variables that override the default
retry parameters for all API node HTTP requests (sync_op, sync_op_raw,
upload_file, download_url_to_bytesio).

Users in regions with unstable networks (e.g. behind the GFW in China)
can increase the retry budget to tolerate longer network interruptions:

  COMFY_API_MAX_RETRIES=10 COMFY_API_RETRY_DELAY=2.0 python main.py

Defaults remain unchanged (3 retries, 1.0s delay, 2.0x backoff) when
the env vars are not set.
2026-04-19 10:48:48 +00:00
..
__init__.py [API Nodes] add ElevenLabs nodes (#12207) 2026-02-19 22:12:28 -08:00
_helpers.py fix(api-nodes-vidu): preserve percent-encoding for signed URLs (#11564) 2025-12-30 20:12:38 -08:00
client.py feat: make API node retry parameters configurable via environment variables 2026-04-19 10:48:48 +00:00
common_exceptions.py feat(api-nodes): network client v2: async ops, cancellation, downloads, refactor (#10390) 2025-10-23 22:37:16 -07:00
conversions.py feat(api-nodes): add Bria RMBG nodes (#12465) 2026-02-15 17:22:30 -08:00
download_helpers.py feat: make API node retry parameters configurable via environment variables 2026-04-19 10:48:48 +00:00
request_logger.py fix(api-nodes): add separate retry budget for 429 rate limit responses (#12421) 2026-02-12 01:38:51 -08:00
upload_helpers.py feat: make API node retry parameters configurable via environment variables 2026-04-19 10:48:48 +00:00
validation_utils.py [API Nodes]: fixes and refactor (#11104) 2025-12-04 14:05:28 -08:00