16-minute delay in FastAPI with SQLAlchemy and connection pooling
I’m experiencing an issue with my FastAPI backend where I use SQLAlchemy for database connection pooling. Frequently, I encounter a 16-minute delay when hitting an API endpoint, especially under concurrent requests. It seems that requests sometimes hang for exactly 16 minutes before responding. This delay occurs whether I use create_engine or create_async_engine for the connection pool.