Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions sky/client/cli/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -5427,9 +5427,14 @@ def jobs_pool_apply(
@flags.config_option(expose_value=False)
@flags.verbose_option()
@click.argument('pool_names', required=False, type=str, nargs=-1)
@click.option('--all',
'-a',
'show_all',
is_flag=True,
default=False,
help='Show all workers.')
@usage_lib.entrypoint
# pylint: disable=redefined-builtin
def jobs_pool_status(verbose: bool, pool_names: List[str]):
def jobs_pool_status(verbose: bool, pool_names: List[str], show_all: bool):
"""Show statuses of pools.

Show detailed statuses of one or more pools. If POOL_NAME is not
Expand All @@ -5442,7 +5447,7 @@ def jobs_pool_status(verbose: bool, pool_names: List[str]):
pool_status_request_id = managed_jobs.pool_status(pool_names_to_query)
_, msg = _handle_services_request(pool_status_request_id,
service_names=pool_names_to_query,
show_all=verbose,
show_all=verbose or show_all,
show_endpoint=False,
pool=True,
is_called_by_user=True)
Expand Down
Loading