Closed sharedphysics closed 1 year ago
Add SQLALCHEMY_ENGINE_OPTIONS = {"pool_pre_ping": True} to config.py to solve for issue identified here: https://github.com/Roznoshchik/Lurnby/issues/30
SQLALCHEMY_ENGINE_OPTIONS = {"pool_pre_ping": True}
To test, leave a page open for a long time (a day? 6h? Depends on your db settings) and then try to do something on that page. Before this fix, it should fail. After this fix, it should be fine.
You're right. Sleepy morning. This config is passed into the flask app, and Flask sql-alchemy will pull out these variables there.
Add
SQLALCHEMY_ENGINE_OPTIONS = {"pool_pre_ping": True}
to config.py to solve for issue identified here: https://github.com/Roznoshchik/Lurnby/issues/30To test, leave a page open for a long time (a day? 6h? Depends on your db settings) and then try to do something on that page. Before this fix, it should fail. After this fix, it should be fine.