1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 15:04:50 +08:00

Add a button to interrupt processing to the ui.

This commit is contained in:
comfyanonymous
2023-03-02 15:24:51 -05:00
parent 69cc75fbf8
commit c8ce599a8f
3 changed files with 10 additions and 2 deletions

View File

@@ -135,6 +135,8 @@ class PromptExecutor:
self.server = server
def execute(self, prompt, extra_data={}):
nodes.interrupt_processing(False)
if "client_id" in extra_data:
self.server.client_id = extra_data["client_id"]
else: