Skip to content

Commit f298234

Browse files
committed
add
1 parent 23cfde5 commit f298234

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

eval_protocol/pytest/evaluation_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,8 @@ async def _collect_result(config, lst):
602602
r.eval_metadata.status = Status.error(
603603
r.rollout_status.message, r.rollout_status.details
604604
)
605-
else:
605+
elif not (r.eval_metadata.status and r.eval_metadata.status.code != Status.Code.RUNNING):
606+
# if the eval_metadata status code has not been set to something else, consider it as finished
606607
r.eval_metadata.status = Status.eval_finished()
607608
# Optional debug print for assistant/tool sequence
608609
if os.getenv("EP_DEBUG_SERIALIZATION", "0").strip() == "1":

0 commit comments

Comments
 (0)