go-links
go-links copied to clipboard
Fixed pool_pre_ping configuration
Description
apply_pool_defaults was removed in flask-sqlalchemy 3.x. SQLALCHEMY_ENGINE_OPTIONS is used to enable pool_pre_ping, and avoid 500 errors if the database connection during a pronlonged period between requests.
🔬 How to test
- Run the service.
- Close the database connection between the service and the DB server.
- Navigate to a go link.
- Confirm the redirect works as expected (and no server error is thrown).
Changes include
- [x] Bug fix (non-breaking change that solves an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (change that is not backwards-compatible and/or changes current functionality)
- [ ] Documentation
- [ ] Release
- [ ] Other