From af714639e58a5011626bd585f2e83536972edb56 Mon Sep 17 00:00:00 2001 From: Zongheng Yang Date: Mon, 12 Jun 2023 20:37:49 -0700 Subject: [PATCH] UX: don't print refresh hint on `status -r`. --- sky/cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sky/cli.py b/sky/cli.py index 0da4f7c7733..2a4354e4255 100644 --- a/sky/cli.py +++ b/sky/cli.py @@ -1713,7 +1713,9 @@ def status(all: bool, refresh: bool, show_spot_jobs: bool, clusters: List[str]): f'* {job_info}To see all spot jobs: {colorama.Style.BRIGHT}' f'sky spot queue{colorama.Style.RESET_ALL}') - if num_pending_autostop > 0: + if num_pending_autostop > 0 and not refresh: + # Don't print this hint if there's no pending autostop or user has + # already passed --refresh. plural_and_verb = ' has' if num_pending_autostop > 1: plural_and_verb = 's have'