From bb4416dd5b2d7c2f34dc17e18761dd6b3d8b6ead Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Thu, 22 Aug 2024 17:38:30 -0400 Subject: [PATCH] Fix task.status.status_str caused by #2666 (#4551) * Fix task.status.status_str caused by 2666 regression * fix * fix --- execution.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/execution.py b/execution.py index 05a662cd..e66aabbc 100644 --- a/execution.py +++ b/execution.py @@ -450,7 +450,7 @@ class PromptExecutor: "current_outputs": list(current_outputs), } self.add_message("execution_error", mes, broadcast=False) - + def execute(self, prompt, prompt_id, extra_data={}, execute_outputs=[]): nodes.interrupt_processing(False) @@ -492,6 +492,7 @@ 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.FAILURE if result == ExecutionResult.FAILURE: self.handle_execution_error(prompt_id, dynamic_prompt.original_prompt, current_outputs, executed, error, ex) break