From bd13280556204e01fa8caa0f28fd6b62157cdb3d Mon Sep 17 00:00:00 2001 From: Pantelis Kouris Date: Tue, 3 May 2022 10:09:39 +0200 Subject: [PATCH] added comment for issue #266 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Dion Häfner --- terracotta/drivers/relational_meta_store.py | 1 + 1 file changed, 1 insertion(+) diff --git a/terracotta/drivers/relational_meta_store.py b/terracotta/drivers/relational_meta_store.py index bf5c10ca..794809d3 100644 --- a/terracotta/drivers/relational_meta_store.py +++ b/terracotta/drivers/relational_meta_store.py @@ -89,6 +89,7 @@ def __init__(self, path: str) -> None: echo=False, future=True, connect_args={self.SQL_TIMEOUT_KEY: db_connection_timeout}, + # automatically re-spawn stale connections, see terracotta#266 pool_pre_ping=True ) self.sqla_metadata = sqla.MetaData()