Skip to content

Commit 172f6e3

Browse files
Hints for spot controller in sky status output. (skypilot-org#1467)
* Hints for spot controller in `sky status` output. * Update hint. * Update message. * Reword * Reorder * pylint * Reword * Remnant.
1 parent d370176 commit 172f6e3

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

Diff for: sky/backends/cloud_vm_ray_backend.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2283,7 +2283,7 @@ def _exec_code_on_head(
22832283
'\nTo cancel the job:\t\t'
22842284
f'{backend_utils.BOLD}sky spot cancel {job_id}'
22852285
f'{backend_utils.RESET_BOLD}'
2286-
'\nTo stream the logs:\t\t'
2286+
'\nTo stream job logs:\t\t'
22872287
f'{backend_utils.BOLD}sky spot logs {job_id}'
22882288
f'{backend_utils.RESET_BOLD}'
22892289
f'\nTo stream controller logs:\t'
@@ -2298,7 +2298,7 @@ def _exec_code_on_head(
22982298
'\nTo cancel the job:\t'
22992299
f'{backend_utils.BOLD}sky cancel {name} {job_id}'
23002300
f'{backend_utils.RESET_BOLD}'
2301-
'\nTo stream the logs:\t'
2301+
'\nTo stream job logs:\t'
23022302
f'{backend_utils.BOLD}sky logs {name} {job_id}'
23032303
f'{backend_utils.RESET_BOLD}'
23042304
'\nTo view the job queue:\t'

Diff for: sky/cli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2828,7 +2828,7 @@ def _is_spot_controller_up(
28282828

28292829
@cli.group(cls=_NaturalOrderGroup)
28302830
def spot():
2831-
"""Managed spot instances related commands."""
2831+
"""Commands for managed spot jobs."""
28322832
pass
28332833

28342834

Diff for: sky/utils/cli_utils/status_utils.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,13 @@ def show_status_table(cluster_records: List[Dict[str, Any]],
9797
autostop_minutes = spot.SPOT_CONTROLLER_IDLE_MINUTES_TO_AUTOSTOP
9898
click.echo(f'\n{colorama.Fore.CYAN}{colorama.Style.BRIGHT}'
9999
f'{reserved_group_name}{colorama.Style.RESET_ALL}'
100-
f'{colorama.Style.DIM} (will be autostopped if idle for '
100+
f'{colorama.Style.DIM} (autostopped if idle for '
101101
f'{autostop_minutes}min)'
102102
f'{colorama.Style.RESET_ALL}')
103+
reset = backend_utils.RESET_BOLD
104+
click.echo('Use spot jobs CLI: '
105+
f'{colorama.Style.BRIGHT}sky spot --help{reset}')
106+
103107
else:
104108
click.echo(f'{colorama.Fore.CYAN}{colorama.Style.BRIGHT}Clusters'
105109
f'{colorama.Style.RESET_ALL}')

0 commit comments

Comments
 (0)