Skip to content

Commit 88e7146

Browse files
authored
Unassign scheduled run from fleet on resubmission (#3096)
1 parent 449f43d commit 88e7146

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • src/dstack/_internal/server/services

src/dstack/_internal/server/services/runs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,6 +1164,8 @@ async def process_terminating_run(session: AsyncSession, run_model: RunModel):
11641164
):
11651165
run_model.next_triggered_at = _get_next_triggered_at(run.run_spec)
11661166
run_model.status = RunStatus.PENDING
1167+
# Unassign run from fleet so that the new fleet can be chosen on the next submission
1168+
run_model.fleet = None
11671169
else:
11681170
run_model.status = run_model.termination_reason.to_status()
11691171

0 commit comments

Comments
 (0)