Skip to content

Commit c50d578

Browse files
committed
Comment on optimal fleet choice
1 parent 1f47e2b commit c50d578

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,9 @@ def _find_optimal_fleet_with_offers(
442442
return None, []
443443

444444
nodes_required_num = _get_nodes_required_num_for_run(run_spec)
445-
445+
# The current strategy is to first consider fleets that can accommodate
446+
# the run without additional provisioning and choose the one with the cheapest offer.
447+
# Fallback to fleet with the cheapest offer among all fleets.
446448
candidate_fleets_with_offers: list[
447449
tuple[
448450
Optional[FleetModel],

0 commit comments

Comments
 (0)