Skip to content

Commit d98f653

Browse files
committed
Add shutdown handling for Litestar
1 parent c52a34a commit d98f653

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apitally/litestar.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def __init__(
3737

3838
def on_app_init(self, app_config: AppConfig) -> AppConfig:
3939
app_config.on_startup.append(self.on_startup)
40+
app_config.on_shutdown.append(self.client.handle_shutdown)
4041
app_config.middleware.append(self.middleware_factory)
4142
return app_config
4243

0 commit comments

Comments
 (0)