Skip to content

Commit

Permalink
Update cloud_vm_ray_backend.py
Browse files Browse the repository at this point in the history
  • Loading branch information
andylizf authored Oct 28, 2024
1 parent c0c1748 commit 2a24671
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sky/backends/cloud_vm_ray_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -3406,9 +3406,9 @@ def _dump_code_to_file(codegen: str) -> None:
controller = controller_utils.Controllers.from_name(name)
if controller == controller_utils.Controllers.JOBS_CONTROLLER:
logger.info(
f'\n📋 Useful Commands'
f'\nManaged Job ID: '
f'\n{fore.CYAN}Managed Job ID: '
f'{style.BRIGHT}{job_id}{style.RESET_ALL}'
f'\n📋 Useful Commands'
f'\n{ux_utils.INDENT_SYMBOL}To cancel the job:\t\t\t'
f'{ux_utils.BOLD}sky jobs cancel {job_id}'
f'{ux_utils.RESET_BOLD}'
Expand All @@ -3425,8 +3425,10 @@ def _dump_code_to_file(codegen: str) -> None:
f'dashboard:\t{ux_utils.BOLD}sky jobs dashboard'
f'{ux_utils.RESET_BOLD}')
elif controller is None:
logger.info(f'\n📋 Useful Commands'
f'\nJob ID: {job_id}'
logger.info(
f'\n{fore.CYAN}Job ID: '
f'{style.BRIGHT}{job_id}{style.RESET_ALL}'
f'\n📋 Useful Commands'
f'\n{ux_utils.INDENT_SYMBOL}To cancel the job:\t\t'
f'{ux_utils.BOLD}sky cancel {name} {job_id}'
f'{ux_utils.RESET_BOLD}'
Expand Down

0 comments on commit 2a24671

Please sign in to comment.