feat: add pool options recycle (#3080)

This commit is contained in:
shaohuzhang1 2025-05-13 16:56:06 +08:00 committed by GitHub
parent 8d8de53e38
commit ccf43bbcd9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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