From 0f03a1654200a0349afb53c7b07d36b3b95bd711 Mon Sep 17 00:00:00 2001 From: Ziming Mao Date: Mon, 1 Apr 2024 03:20:02 -0400 Subject: [PATCH] [Serve] [Bug] `_should_use_spot` use spot bug fix. (#3397) bug fix --- sky/serve/replica_managers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sky/serve/replica_managers.py b/sky/serve/replica_managers.py index 9f2d35b7bdf..e4c7bf0ba32 100644 --- a/sky/serve/replica_managers.py +++ b/sky/serve/replica_managers.py @@ -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):