#Pod stuck when starting container

14 messages · Page 1 of 1 (latest)

uneven hinge
#

Yesterday I updated my serverless endpoint with "New release" button. However when the new request came the worker stuck when trying to start container and sucked the remaining funds from my account. In the logs I see multiple worker exited with exit code 0 errors

Probably something wrong with my container, but would be nice if after multiple failed attempts to start container the worker stopped automatically and didn't drain money.

fair wolf
#

maybe its on your program ( not sure )

#

how does your handler file looks like, or describe how it works maybe

tropic lance
uneven hinge
uneven hinge
tropic lance
#

Does your handler function have similar code or does your handler function call another function with similar code as below?

# The top level element "prompt" is required by ComfyUI
data = json.dumps({"prompt": workflow}).encode("utf-8")

req = urllib.request.Request(f"http://{COMFY_HOST}/prompt", data=data)
uneven hinge
tropic lance
#

I use that one and this is my complete main:

# Start the handler only if this script is run directly
if __name__ == "__main__":
    runpod.serverless.start({"handler": handler})
uneven hinge
#

nice, i'll have a look at it, thank you

tropic lance
#

wait... that is for Serverless Worker, not pod.

uneven hinge
#

yes, i'm using serverless