Closed mutantmonkey closed 6 years ago
When SQLAlchemy 1.2 is stable, we should start using the new pessimistic disconnect handling by adding pool_pre_ping=True when creating the engine. This will ensure that we don't end up trying to use stale DB connections.
pool_pre_ping=True
See http://docs.sqlalchemy.org/en/latest/changelog/migration_12.html#pessimistic-disconnection-detection-added-to-the-connection-pool
See https://github.com/wuvt/impala/pull/2
When SQLAlchemy 1.2 is stable, we should start using the new pessimistic disconnect handling by adding
pool_pre_ping=True
when creating the engine. This will ensure that we don't end up trying to use stale DB connections.See http://docs.sqlalchemy.org/en/latest/changelog/migration_12.html#pessimistic-disconnection-detection-added-to-the-connection-pool