Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Connection lost errors on macos (#64)
Postgres connections are dropped when database is running in the host machine. This solution adds a parameter to SQLAlchemy to ping the database and reconnect if it is dropped. This is pessimistic and may add latency. However it is the easiest solution. Refer: * https://stackoverflow.com/questions/55457069/how-to-fix-operationalerror-psycopg2-operationalerror-server-closed-the-conn * https://docs.sqlalchemy.org/en/14/core/pooling.html#disconnect-handling-pessimistic Fix #63
- Loading branch information