fix(plugin): ensure the status of run is set to fail if the prompt validation failed

This commit is contained in:
bennykok
2024-02-07 23:51:29 +08:00
parent 3adf77617b
commit 7e86c20383
+2
View File
@@ -118,6 +118,8 @@ async def comfy_deploy_run(request):
"stack_trace": stack_trace
}
})
# When there are critical errors, the prompt is actually not run
await update_run(prompt_id, Status.FAILED)
return web.Response(status=500, reason=f"{error_type}: {e}, {stack_trace_short}")
status = 200