Skip to content

Commit 8d68f38

Browse files
Merge branch '2830-bug-runjob-status-in-uicli-is-shown-as-provisioning-instead-of-pulling'
2 parents 0b53d25 + 7afb573 commit 8d68f38

File tree

1 file changed

+3
-1
lines changed
  • src/dstack/_internal/core/models

1 file changed

+3
-1
lines changed

src/dstack/_internal/core/models/runs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,9 @@ def _status_message(cls, values) -> Dict:
549549
jobs[0].job_spec.retry.on_events if jobs and jobs[0].job_spec.retry else []
550550
)
551551
job_status = (
552-
jobs[0].job_submissions[-1].status if jobs and jobs[0].job_submissions else None
552+
jobs[0].job_submissions[-1].status
553+
if len(jobs) == 1 and jobs[0].job_submissions
554+
else None
553555
)
554556
termination_reason = Run.get_last_termination_reason(jobs[0]) if jobs else None
555557
except KeyError:

0 commit comments

Comments
 (0)