fix: safety check with when prompt has not yet running
This commit is contained in:
parent
8a42506908
commit
f99b6f34ff
@ -170,7 +170,7 @@ async def websocket_handler(request):
|
|||||||
async def comfy_deploy_check_status(request):
|
async def comfy_deploy_check_status(request):
|
||||||
prompt_server = server.PromptServer.instance
|
prompt_server = server.PromptServer.instance
|
||||||
prompt_id = request.rel_url.query.get('prompt_id', None)
|
prompt_id = request.rel_url.query.get('prompt_id', None)
|
||||||
if prompt_id in prompt_metadata:
|
if prompt_id in prompt_metadata and 'status' in prompt_metadata[prompt_id]:
|
||||||
return web.json_response({
|
return web.json_response({
|
||||||
"status": prompt_metadata[prompt_id]['status'].value
|
"status": prompt_metadata[prompt_id]['status'].value
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user