Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cblmemo committed May 14, 2024
1 parent 3c01902 commit 98abe0a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sky/backends/cloud_vm_ray_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -4152,11 +4152,10 @@ def set_autostop(self,
# Skip auto-stop for Kubernetes clusters.
if (isinstance(handle.launched_resources.cloud, clouds.Kubernetes)
and not down and idle_minutes_to_autostop >= 0):
# We should hit this code path only for the jobs controller on
# We should hit this code path only for the controllers on
# Kubernetes clusters.
assert (controller_utils.Controllers.from_name(
handle.cluster_name) == controller_utils.Controllers.
JOBS_CONTROLLER), handle.cluster_name
handle.cluster_name) is not None), handle.cluster_name
logger.info('Auto-stop is not supported for Kubernetes '
'clusters. Skipping.')
return
Expand Down

0 comments on commit 98abe0a

Please sign in to comment.