From 1037176a18d6c5e610fad83809ff9bd929bf1d91 Mon Sep 17 00:00:00 2001 From: Friedel Wolff Date: Fri, 21 Jun 2024 11:05:10 +0200 Subject: [PATCH] Enable persistent DB connections --- app/app/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/app/settings.py b/app/app/settings.py index 88064c6b..af92a265 100644 --- a/app/app/settings.py +++ b/app/app/settings.py @@ -109,6 +109,8 @@ "USER": os.environ.get("DB_USER"), "PASSWORD": os.environ.get("DB_PASSWORD"), "TEST": {"NAME": "test_db"}, + "CONN_MAX_AGE": None, + "CONN_HEALTH_CHECKS": True, } }