Skip to content

Commit

Permalink
[Serve] [Bug] _should_use_spot use spot bug fix. (#3397)
Browse files Browse the repository at this point in the history
bug fix
  • Loading branch information
MaoZiming committed Apr 1, 2024
1 parent 985300e commit 0f03a16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sky/serve/replica_managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def _should_use_spot(task_yaml: str,
]
# Either resources all use spot or none use spot.
assert len(spot_use_resources) in [0, len(task.resources)]
return spot_use_resources == len(task.resources)
return len(spot_use_resources) == len(task.resources)


def with_lock(func):
Expand Down

0 comments on commit 0f03a16

Please sign in to comment.