Skip to content

Commit 6ebbc6f

Browse files
committed
merge conflict
2 parents 20393d5 + 52c9dbd commit 6ebbc6f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lab-sdk/src/lab/remote_trap.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,16 @@
1010

1111

1212
async def _set_live_status_async(job_id: str, status: str) -> None:
13-
"""Async helper to set live_status on a job."""
13+
"""Async helper to set live_status on a job and mirror failures to job status."""
1414
try:
1515
job = await Job.get(job_id)
1616
if job is None:
1717
return
1818
await job.update_job_data_field("live_status", status)
19+
20+
# If the remote command crashed, also mark the job as FAILED.
21+
if status == "crashed":
22+
await job.update_status("FAILED")
1923
except Exception:
2024
# This helper should never cause the wrapped command to fail.
2125
return

0 commit comments

Comments
 (0)