Facing a Serverless run error that is not encountered in ComfyUI web UI.
Hi all, my Serverless Endpoint has the same custom nodes and models as my persistent pod. However, it encountered the following error when I tried to run my custom workflow on the Serverless Endpoint. Please see logs attached😢 and help me to fix.
12 Replies
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
I'm adding custom nodes to my Docker image via snapshot as instructed in the following repo.
https://github.com/blib-la/runpod-worker-comfy
GitHub
GitHub - blib-la/runpod-worker-comfy: ComfyUI as a serverless API o...
ComfyUI as a serverless API on RunPod. Contribute to blib-la/runpod-worker-comfy development by creating an account on GitHub.
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
ok I'll try doing that
my prompt did finish execution after 3mins+ but my request showed as FAILED after 2mins.


Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
hey i managed to solve it, thanks
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
the issue is due to the ComfyUI worker's polling timeout, which defaults to about 2 minutes, causing the request to fail before my 3-minute workflow completes.
Solution
I've set
COMFY_POLLING_MAX_RETRIES to 1000 and it worksUnknown User•7mo ago
Message Not Public
Sign In & Join Server To View