diff --git a/custom_routes.py b/custom_routes.py index 4a4ac16..d83910b 100644 --- a/custom_routes.py +++ b/custom_routes.py @@ -717,7 +717,7 @@ def update_run(prompt_id: str, status: Status): if (prompt_metadata[prompt_id].status != status): # when the status is already failed, we don't want to update it to success - if ('status' in prompt_metadata[prompt_id] and prompt_metadata[prompt_id].status == Status.FAILED): + if (prompt_metadata[prompt_id].status is Status.FAILED): return status_endpoint = prompt_metadata[prompt_id].status_endpoint