Skip to content

Commit

Permalink
fix: delete trace error for timeout when deploying (#4649)
Browse files Browse the repository at this point in the history
Signed-off-by: FogDong <fog@bentoml.com>
  • Loading branch information
FogDong committed Apr 11, 2024
1 parent db89457 commit a3bbb23
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/bentoml/_internal/cloud/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ def wait_until_ready(
action=f'[bold red]Time out waiting for Deployment "{self.name}" ready.[/bold red]',
)
spinner.spinner_progress.stop_task(spinner_task_id)
return
else:
while time.time() - start_time < timeout:
status = self.get_status()
Expand All @@ -530,9 +531,7 @@ def wait_until_ready(
)
time.sleep(check_interval)

raise TimeoutError(
f"Timed out waiting for deployment '{self.name}' to be ready."
)
logger.error(f"Timed out waiting for deployment '{self.name}' to be ready.")


@attr.define
Expand Down

0 comments on commit a3bbb23

Please sign in to comment.