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 0b53d25 + 7afb573 commit 8d68f38Copy full SHA for 8d68f38
src/dstack/_internal/core/models/runs.py
@@ -549,7 +549,9 @@ def _status_message(cls, values) -> Dict:
549
jobs[0].job_spec.retry.on_events if jobs and jobs[0].job_spec.retry else []
550
)
551
job_status = (
552
- jobs[0].job_submissions[-1].status if jobs and jobs[0].job_submissions else None
+ jobs[0].job_submissions[-1].status
553
+ if len(jobs) == 1 and jobs[0].job_submissions
554
+ else None
555
556
termination_reason = Run.get_last_termination_reason(jobs[0]) if jobs else None
557
except KeyError:
0 commit comments