diff --git a/server/npg/porchdb/connection.py b/server/npg/porchdb/connection.py index 93fc692..1374db3 100644 --- a/server/npg/porchdb/connection.py +++ b/server/npg/porchdb/connection.py @@ -53,7 +53,8 @@ } engine = create_async_engine( config['DB_URL'], - connect_args=connect_args + connect_args=connect_args, + pool_pre_ping=True ) Base.metadata.schema = config['DB_SCHEMA'] session_factory = sessionmaker(