Simonj
Simonj
RRunPod
Created by Simonj on 1/1/2024 in #⚡|serverless
progress updates implementation for Automatic1111 / ComfyUI
Can I reopen that topic. I still haven't figured out how to get progress updates from a runpod serverless worker running ComfyUI. I'm currently using AI Dock and my workaround is to estimate generation time and create a fake timer, which more or less predicts how long generation will take. But of course it would be much better to get actual updates from the Comfy backend. The replies above are too brief for me to understand how to actually call the Comfy API from the handler to get progress updates. Any hints or examples on how this could be done would be very much aprechiated.
7 replies
RRunPod
Created by Simonj on 1/1/2024 in #⚡|serverless
progress updates implementation for Automatic1111 / ComfyUI
Thank you. Sorry for maybe standing on the line but I still don’t get it. How would I return the result of a call to the underlying automatic1111 api in the progress update? Like this:
for update_number in range(0, 1000):

// make call to automatic1111 /progress api endpoint runpod.serverless.progress_update(event, {
"progress": f"{result_from_automatic1111_api_call}"
})
time.sleep(10)
for update_number in range(0, 1000):

// make call to automatic1111 /progress api endpoint runpod.serverless.progress_update(event, {
"progress": f"{result_from_automatic1111_api_call}"
})
time.sleep(10)
7 replies