Skip to content

Commit

Permalink
added a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
MaoZiming committed Jan 4, 2024
1 parent 87d0106 commit ad5d524
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sky/serve/serve_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ def from_replica_statuses(
if sum(status2num[status]
for status in ReplicaStatus.failed_statuses()) > 0:
return cls.FAILED
# When min_replicas = 0, there is no (provisioning) replica.
if (len(replica_statuses) - status2num[ReplicaStatus.FAILED] -
status2num[ReplicaStatus.FAILED_CLEANUP] == 0):
return cls.NO_REPLICA
Expand Down

0 comments on commit ad5d524

Please sign in to comment.