From 1b041ccf0c3ceab1cd0d6347343636c388e9cd99 Mon Sep 17 00:00:00 2001 From: huchenlei Date: Sun, 21 Jul 2024 15:23:26 -0400 Subject: [PATCH] Rename to execution_success --- execution.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/execution.py b/execution.py index 44e9ccf95..0a2e62e7e 100644 --- a/execution.py +++ b/execution.py @@ -400,8 +400,8 @@ class PromptExecutor: self.handle_execution_error(prompt_id, prompt, current_outputs, executed, error, ex) break else: - # Only execute when while ends without break - self.add_message("execution_end", { "prompt_id": prompt_id }, broadcast=False) + # Only execute when the while-loop ends without break + self.add_message("execution_success", { "prompt_id": prompt_id }, broadcast=False) for x in executed: self.old_prompt[x] = copy.deepcopy(prompt[x])