We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 20393d5 + 52c9dbd commit 6ebbc6fCopy full SHA for 6ebbc6f
1 file changed
lab-sdk/src/lab/remote_trap.py
@@ -10,12 +10,16 @@
10
11
12
async def _set_live_status_async(job_id: str, status: str) -> None:
13
- """Async helper to set live_status on a job."""
+ """Async helper to set live_status on a job and mirror failures to job status."""
14
try:
15
job = await Job.get(job_id)
16
if job is None:
17
return
18
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")
23
except Exception:
24
# This helper should never cause the wrapped command to fail.
25
0 commit comments