Skip to content

Commit

Permalink
Set pool_pre_ping to True
Browse files Browse the repository at this point in the history
  • Loading branch information
panakouris authored May 2, 2022
1 parent 2e8bcdb commit 4e219de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion terracotta/drivers/relational_meta_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 4e219de

Please sign in to comment.