"tools/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "0f3186505e8b1fd4c309c01dadc80739eedff7af"
Commit 974958ff authored by comfyanonymous's avatar comfyanonymous
Browse files

Make the prompt_id a uuid and return it when queueing the prompt.

parent 3a7c3acc
......@@ -313,7 +313,9 @@ class PromptServer():
if "client_id" in json_data:
extra_data["client_id"] = json_data["client_id"]
if valid[0]:
self.prompt_queue.put((number, id(prompt), prompt, extra_data, valid[2]))
prompt_id = str(uuid.uuid4())
self.prompt_queue.put((number, prompt_id, prompt, extra_data, valid[2]))
return web.json_response({"prompt_id": prompt_id})
else:
resp_code = 400
out_string = valid[1]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment