Skip to content

Commit a91ba14

Browse files
authored
fix: stop spinner before starting to stream logs (#4846)
Signed-off-by: Frost Ming <[email protected]>
1 parent a7515a0 commit a91ba14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bentoml/_internal/cloud/deployment.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ def wait_until_ready(
508508
if spinner is not None:
509509
stop_tail_event = Event()
510510

511-
def tail_image_builder_logs():
511+
def tail_image_builder_logs() -> None:
512512
cloud_rest_client = get_rest_api_client(self._context)
513513
pod: KubePodSchema | None = None
514514
while True:
@@ -539,6 +539,7 @@ def tail_image_builder_logs():
539539
if is_first:
540540
is_first = False
541541
spinner.update("🚧 Image building...")
542+
spinner.stop()
542543
print(decoded_str, end="", flush=True)
543544

544545
tail_thread: Thread | None = None

0 commit comments

Comments
 (0)