Skip to content

Commit

Permalink
Issue 266 (#267)
Browse files Browse the repository at this point in the history
* Set pool_pre_ping to True

* added comment for issue #266

Co-authored-by: Dion Häfner <[email protected]>

Co-authored-by: Dion Häfner <[email protected]>
  • Loading branch information
panakouris and dionhaefner authored May 3, 2022
1 parent 2e8bcdb commit 5cbe541
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion terracotta/drivers/relational_meta_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ 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},
# automatically re-spawn stale connections, see terracotta#266
pool_pre_ping=True
)
self.sqla_metadata = sqla.MetaData()

Expand Down

0 comments on commit 5cbe541

Please sign in to comment.