From a91ba1402a90b94bf69ee2ebf1058df6a2d3f150 Mon Sep 17 00:00:00 2001 From: Frost Ming Date: Wed, 10 Jul 2024 11:09:42 +0800 Subject: [PATCH] fix: stop spinner before starting to stream logs (#4846) Signed-off-by: Frost Ming --- src/bentoml/_internal/cloud/deployment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bentoml/_internal/cloud/deployment.py b/src/bentoml/_internal/cloud/deployment.py index 1428c18f695..76e063083c8 100644 --- a/src/bentoml/_internal/cloud/deployment.py +++ b/src/bentoml/_internal/cloud/deployment.py @@ -508,7 +508,7 @@ def wait_until_ready( if spinner is not None: stop_tail_event = Event() - def tail_image_builder_logs(): + def tail_image_builder_logs() -> None: cloud_rest_client = get_rest_api_client(self._context) pod: KubePodSchema | None = None while True: @@ -539,6 +539,7 @@ def tail_image_builder_logs(): if is_first: is_first = False spinner.update("🚧 Image building...") + spinner.stop() print(decoded_str, end="", flush=True) tail_thread: Thread | None = None