From 7b653201ae92c7452dd8bc2b67a27789db60d931 Mon Sep 17 00:00:00 2001 From: bennykok Date: Mon, 26 Feb 2024 00:09:11 -0800 Subject: [PATCH] fix(plugin): update prompt metadata status properly with realtime prompt --- custom_routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_routes.py b/custom_routes.py index 399d695..573eec0 100644 --- a/custom_routes.py +++ b/custom_routes.py @@ -600,6 +600,7 @@ def update_run(prompt_id: str, status: Status): # if prompt_metadata[prompt_id].start_time is None and status == Status.RUNNING: # if its realtime prompt we need to skip that. if prompt_metadata[prompt_id].is_realtime is True: + prompt_metadata[prompt_id].status = status return if (prompt_metadata[prompt_id].status != status): @@ -649,7 +650,6 @@ def update_run(prompt_id: str, status: Status): except Exception as log_error: print(f"Error reading log file: {log_error}") - except Exception as e: error_type = type(e).__name__ stack_trace = traceback.format_exc().strip()