async execution failed to run

Hello everyone,

I'm trying to implement a discord bot that can send request to serverless endpoint and run ComfyUI to generate images. I tried to refer the code in the documentation but the worker never able to run through the job, instead it failed to return anything. By changing the code to run_sync, this worked perfectly fine.

I have attached my handler and get image function below.

Any suggestions on how to troubleshoot would be great!
image_2.png
image_3.png
image_5.png
Was this page helpful?