From 3825a32d8bfccf03c254f926f1fd463d46c781b8 Mon Sep 17 00:00:00 2001 From: Daniel O'Connell Date: Sun, 17 Dec 2023 23:56:35 +0100 Subject: [PATCH] auto fix sql connection --- align_data/db/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/align_data/db/session.py b/align_data/db/session.py index 2e80c4b4..18acfdb8 100644 --- a/align_data/db/session.py +++ b/align_data/db/session.py @@ -10,7 +10,7 @@ logger = logging.getLogger(__name__) # We create a single engine for the entire application -engine = create_engine(DB_CONNECTION_URI, echo=False) +engine = create_engine(DB_CONNECTION_URI, echo=False, pool_pre_ping=True) @contextmanager