From 4e219de7d01153862faac520abfc3a6ef9858d0f Mon Sep 17 00:00:00 2001 From: Pantelis Kouris Date: Mon, 2 May 2022 15:08:30 +0200 Subject: [PATCH] Set pool_pre_ping to True --- terracotta/drivers/relational_meta_store.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/terracotta/drivers/relational_meta_store.py b/terracotta/drivers/relational_meta_store.py index 30c60bf7..bf5c10ca 100644 --- a/terracotta/drivers/relational_meta_store.py +++ b/terracotta/drivers/relational_meta_store.py @@ -88,7 +88,8 @@ def __init__(self, path: str) -> None: self.url, echo=False, future=True, - connect_args={self.SQL_TIMEOUT_KEY: db_connection_timeout} + connect_args={self.SQL_TIMEOUT_KEY: db_connection_timeout}, + pool_pre_ping=True ) self.sqla_metadata = sqla.MetaData()