go-links icon indicating copy to clipboard operation
go-links copied to clipboard

Fixed pool_pre_ping configuration

Open clintonb opened this issue 1 year ago • 0 comments

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
  1. Run the service.
  2. Close the database connection between the service and the DB server.
  3. Navigate to a go link.
  4. 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

clintonb avatar Mar 23 '24 20:03 clintonb