Rename to execution_success

This commit is contained in:
huchenlei 2024-07-21 15:23:26 -04:00
parent 535cb42d4c
commit 1b041ccf0c

View File

@ -400,8 +400,8 @@ class PromptExecutor:
self.handle_execution_error(prompt_id, prompt, current_outputs, executed, error, ex) self.handle_execution_error(prompt_id, prompt, current_outputs, executed, error, ex)
break break
else: else:
# Only execute when while ends without break # Only execute when the while-loop ends without break
self.add_message("execution_end", { "prompt_id": prompt_id }, broadcast=False) self.add_message("execution_success", { "prompt_id": prompt_id }, broadcast=False)
for x in executed: for x in executed:
self.old_prompt[x] = copy.deepcopy(prompt[x]) self.old_prompt[x] = copy.deepcopy(prompt[x])