sqlalchemy.exc.TimeoutError: QueuePool limit of size 5 overflow 10 reached, connection timed out, timeout 30.00
The timeout occurs due to the open connection.
- You must ensure that your sessions are closed; otherwise, they will keep your connections open and never return to the pool.
- log your pool status at some points, so that you can see how many connections are open.
To close sessions: