feat: support SQLALCHEMY_POOL_RESET_ON_RETURN config (#31156)

This commit is contained in:
wangxiaolei
2026-05-08 20:25:46 +08:00
committed by GitHub
parent cb0356e9d7
commit 8132c444dc
5 changed files with 13 additions and 3 deletions

View File

@@ -268,6 +268,8 @@ SQLALCHEMY_POOL_USE_LIFO=false
# Number of seconds to wait for a connection from the pool before raising a timeout error.
# Default is 30
SQLALCHEMY_POOL_TIMEOUT=30
# Connection pool reset behavior on return
SQLALCHEMY_POOL_RESET_ON_RETURN=rollback
# Maximum number of connections to the database
# Default is 100