Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Fix issue with cancelling prompt.

comfyanonymousad81fd682a5e
diff --git a/execution.py b/execution.py
index 1a9a1ff73..218a84c36 100644
--- a/execution.py
+++ b/execution.py
@@ -353,6 +353,7 @@ class PromptExecutor:
success, error, ex = recursive_execute(self.server, prompt, self.outputs, output_node_id, extra_data, executed, prompt_id, self.outputs_ui)
if success is not True:
self.handle_execution_error(prompt_id, prompt, current_outputs, executed, error, ex)
+ break
for x in executed:
self.old_prompt[x] = copy.deepcopy(prompt[x])