MCPcopy Create free account
hub / github.com/Comfy-Org/ComfyUI / post_queue

Method post_queue

server.py:1113–1124  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

1111
1112 @routes.post("/queue")
1113 async def post_queue(request):
1114 json_data = await request.json()
1115 if "clear" in json_data:
1116 if json_data["clear"]:
1117 self.prompt_queue.wipe_queue()
1118 if "delete" in json_data:
1119 to_delete = json_data['delete']
1120 for id_to_delete in to_delete:
1121 delete_func = lambda a: a[1] == id_to_delete
1122 self.prompt_queue.delete_queue_item(delete_func)
1123
1124 return web.Response(status=200)
1125
1126 @routes.post("/interrupt")
1127 async def post_interrupt(request):

Callers

nothing calls this directly

Calls 2

wipe_queueMethod · 0.80
delete_queue_itemMethod · 0.45

Tested by

no test coverage detected