Skip to content

Commit

Permalink
fix: make spinner optional for backward compatibility
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <[email protected]>
  • Loading branch information
frostming committed Sep 23, 2024
1 parent ae3006c commit c5fa08c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bentoml/_internal/cloud/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,14 +509,16 @@ def get_async_client(

def wait_until_ready(
self,
spinner: Spinner,
spinner: Spinner | None = None,
timeout: int = 3600,
check_interval: int = 10,
) -> int:
from httpx import TimeoutException

start_time = time.time()
stop_tail_event = Event()
if spinner is None:
spinner = Spinner()
console = spinner.console

def tail_image_builder_logs() -> None:
Expand Down

0 comments on commit c5fa08c

Please sign in to comment.