Closed kmccurley closed 11 months ago
This may be related to this comment which links to here and mentions how connections might just "go away" after 8 hours. It's weird to me that we need to take special action if the database hasn't been touched in 8 hours, but that's SQLAlchemy for you.💩 I tried adding pool_pre_ping=True
to create_engine
in __init__.py
and we'll see if the problem goes away.
I've seen a couple of times where the server generates a 500 error. One of the apache logs shows:
If I reload the page 15 seconds later, it works without a problem. This may be due to some change in how SQLAlchemy caches database connections (we recently switched to using mysql).