fix: failed case marked as success
This commit is contained in:
parent
3b6a753472
commit
35fed9aa4d
@ -717,7 +717,7 @@ def update_run(prompt_id: str, status: Status):
|
|||||||
if (prompt_metadata[prompt_id].status != status):
|
if (prompt_metadata[prompt_id].status != status):
|
||||||
|
|
||||||
# when the status is already failed, we don't want to update it to success
|
# 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
|
return
|
||||||
|
|
||||||
status_endpoint = prompt_metadata[prompt_id].status_endpoint
|
status_endpoint = prompt_metadata[prompt_id].status_endpoint
|
||||||
|
Loading…
x
Reference in New Issue
Block a user