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
this error?, just wondering too, are you adding yourcustom nodes inside network storage or inside your image (via dockerfile / from your builds step)
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.
I see maybe try debugging if the custom nodes and pip packages is correctly installed
By using 1 active worker and then connect to the worker via web terminal
ok I'll try doing that
my prompt did finish execution after 3mins+ but my request showed as FAILED after 2mins.


No errors after that?
What's the job result? Or response from /status from the failed job
hey i managed to solve it, thanks
Oh just wondering what's the problem?
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 worksI see