R
Runpod•7mo ago
Yifan Goh

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.
Solution:
I've set COMFY_POLLING_MAX_RETRIES to 1000 and it works
Jump to solution
12 Replies
Unknown User
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
Yifan Goh
Yifan GohOP•7mo ago
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
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
Yifan Goh
Yifan GohOP•7mo ago
ok I'll try doing that
Yifan Goh
Yifan GohOP•7mo ago
my prompt did finish execution after 3mins+ but my request showed as FAILED after 2mins.
No description
Yifan Goh
Yifan GohOP•7mo ago
No description
Unknown User
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
Yifan Goh
Yifan GohOP•7mo ago
hey i managed to solve it, thanks
Unknown User
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
Yifan Goh
Yifan GohOP•7mo ago
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
Yifan Goh
Yifan Goh•7mo ago
I've set COMFY_POLLING_MAX_RETRIES to 1000 and it works
Unknown User
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?