Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaelvll committed May 3, 2024
1 parent a57026a commit 00edb54
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
7 changes: 4 additions & 3 deletions sky/backends/cloud_vm_ray_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -3151,9 +3151,10 @@ def _exec_code_on_head(
managed_job_code = managed_job_codegen.set_pending(
job_id, managed_job_dag)
# Set the managed job to PENDING state to make sure that this
# managed job appears in the `sky jobs queue`, when there are already
# 2x vCPU controller processes running on the controller VM, e.g.,
# 16 controller processes running on a controller with 8 vCPUs.
# managed job appears in the `sky jobs queue`, when there are
# already 2x vCPU controller processes running on the controller VM,
# e.g., 16 controller processes running on a controller with 8
# vCPUs.
# The managed job should be set to PENDING state *after* the
# controller process job has been queued, as our skylet on spot
# controller will set the managed job in FAILED state if the
Expand Down
2 changes: 0 additions & 2 deletions sky/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3644,8 +3644,6 @@ def spot():
_add_command_alias(jobs, jobs_dashboard, new_group=spot)




@cli.group(cls=_NaturalOrderGroup)
def serve():
"""SkyServe CLI (multi-region, multi-cloud serving)."""
Expand Down
4 changes: 2 additions & 2 deletions sky/utils/controller_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ class Controllers(enum.Enum):
f'{colorama.Style.BRIGHT}sky jobs queue{colorama.Style.RESET_ALL}'),
decline_cancel_hint=(
'Cancelling the job controller\'s jobs is not allowed.\nTo cancel '
f'managed jobs, use: {colorama.Style.BRIGHT}sky jobs cancel <managed'
f' job IDs> [--all]{colorama.Style.RESET_ALL}'),
f'managed jobs, use: {colorama.Style.BRIGHT}sky jobs cancel '
f'<managed job IDs> [--all]{colorama.Style.RESET_ALL}'),
_decline_down_when_failed_to_fetch_status_hint=(
f'{colorama.Fore.RED}Tearing down the job controller while '
'it is in INIT state is not supported (this means a job launch '
Expand Down

0 comments on commit 00edb54

Please sign in to comment.