Skip to content

Commit 70dd006

Browse files
committed
rename RolloutStatus reason to termination_reason
1 parent 360af4c commit 70dd006

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

eval_protocol/mcp/execution/manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,12 @@ async def _execute_with_semaphore(idx):
171171
if trajectory.terminated:
172172
if trajectory.termination_reason == TerminationReason.ERROR:
173173
evaluation_rows[idx].rollout_status.status = "error"
174-
evaluation_rows[idx].rollout_status.reason = trajectory.control_plane_summary.get(
174+
evaluation_rows[idx].rollout_status.termination_reason = trajectory.control_plane_summary.get(
175175
"error_message", None
176176
)
177177
else:
178178
evaluation_rows[idx].rollout_status.status = "finished"
179-
evaluation_rows[idx].rollout_status.reason = trajectory.termination_reason
179+
evaluation_rows[idx].rollout_status.termination_reason = trajectory.termination_reason
180180
else:
181181
evaluation_rows[idx].rollout_status.status = "running"
182182

eval_protocol/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,10 @@ class RolloutStatus(BaseModel):
270270
error: Rollout failed.
271271
stopped: Rollout terminated unexpectedly (e.g. max step, control plane signal, user stop).
272272
"""
273-
status: Literal["running", "finished", "error"] = Field(
274-
"running", description="Status of the rollout."
273+
status: Literal["running", "finished", "error"] = Field("running", description="Status of the rollout.")
274+
termination_reason: Optional[str] = Field(
275+
"", description="reason of the rollout status, mapped to values in TerminationReason"
275276
)
276-
reason: Optional[str] = Field("", description="reason of the rollout status, mapped to values in TerminationReason")
277277

278278

279279
class EvaluationRow(BaseModel):

0 commit comments

Comments
 (0)