From bc7ba9673030904ca632dbdf63316c57754a103e Mon Sep 17 00:00:00 2001 From: Christian Oertlin Date: Tue, 9 Apr 2024 08:43:26 +0200 Subject: [PATCH] remove shutdown connection close --- genotype_api/api/app.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/genotype_api/api/app.py b/genotype_api/api/app.py index 2e1bcf0..d521c23 100644 --- a/genotype_api/api/app.py +++ b/genotype_api/api/app.py @@ -76,8 +76,3 @@ def welcome(): def on_startup(): initialise_database(settings.db_uri) create_all_tables() - - -@app.on_event("shutdown") -async def on_shutdown(): - close_session()