Skip to content

Commit

Permalink
fix: fix a bug that runner app can't be shutdown correctly
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <[email protected]>
  • Loading branch information
frostming committed Nov 28, 2024
1 parent 1233d73 commit 2989316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bentoml/_internal/server/runner_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def on_startup(self) -> list[LifecycleHook]:

@property
def on_shutdown(self) -> list[LifecycleHook]:
on_shutdown: list[LifecycleHook] = [self.runner.destroy]
on_shutdown: list[LifecycleHook] = [with_app_arg(self.runner.destroy)]
for dispatcher in self.dispatchers.values():
on_shutdown.append(with_app_arg(dispatcher.shutdown))
on_shutdown.extend(super().on_shutdown)
Expand Down

0 comments on commit 2989316

Please sign in to comment.