diff --git a/execution.py b/execution.py index 99f2757af..4a5b7f04c 100644 --- a/execution.py +++ b/execution.py @@ -492,9 +492,9 @@ class PromptExecutor: break result, error, ex = execute(self.server, dynamic_prompt, self.caches, node_id, extra_data, executed, prompt_id, execution_list, pending_subgraph_results) + self.success = result == ExecutionResult.SUCCESS if result == ExecutionResult.FAILURE: self.handle_execution_error(prompt_id, dynamic_prompt.original_prompt, current_outputs, executed, error, ex) - self.success = False break elif result == ExecutionResult.PENDING: execution_list.unstage_node_execution()