Skip to content

Commit 7afb573

Browse files
[Bug]: Run/job status in UI/CLI is shown as provisioning instead of pulling #2830
1 parent ad1bd93 commit 7afb573

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • src/dstack/_internal/core/models

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)