refactor: recycle db connection to avoid "the connection is closed" exception. (#3726)

This commit is contained in:
shaohuzhang1 2025-07-23 17:15:38 +08:00 committed by GitHub
parent 6f4df54917
commit d1cd01f555
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -116,7 +116,8 @@ class Config(dict):
"POOL_OPTIONS": {
"POOL_SIZE": 20,
"MAX_OVERFLOW": int(self.get('DB_MAX_OVERFLOW')),
'RECYCLE': 30 * 60
"RECYCLE": 1800,
"TIMEOUT": 30
}
}