Skip to content

Commit 31faaf4

Browse files
[UX] Updated job_model.termination_reason_message when no fleet found
1 parent 472b45d commit 31faaf4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/dstack/_internal/server/background/tasks/process_submitted_jobs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,10 @@ async def _process_submitted_job(
349349
job_model.termination_reason = (
350350
JobTerminationReason.FAILED_TO_START_DUE_TO_NO_CAPACITY
351351
)
352-
job_model.termination_reason_message = "Failed to find fleet"
352+
job_model.termination_reason_message = (
353+
"No fleet found. Create it before submitting a run: "
354+
"https://dstack.ai/docs/concepts/fleets"
355+
)
353356
switch_job_status(session, job_model, JobStatus.TERMINATING)
354357
job_model.last_processed_at = common_utils.get_current_datetime()
355358
await session.commit()

0 commit comments

Comments
 (0)