We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d08263 commit 063920cCopy full SHA for 063920c
apps/maxkb/conf.py
@@ -59,9 +59,12 @@ def get_db_setting(self) -> dict:
59
"USER": self.get('DB_USER'),
60
"PASSWORD": self.get('DB_PASSWORD'),
61
"ENGINE": self.get('DB_ENGINE'),
62
+ "CONN_MAX_AGE": 0,
63
"POOL_OPTIONS": {
64
"POOL_SIZE": 20,
- "MAX_OVERFLOW": int(self.get('DB_MAX_OVERFLOW'))
65
+ "MAX_OVERFLOW": int(self.get('DB_MAX_OVERFLOW')),
66
+ 'RECYCLE': 1800,
67
+ 'TIMEOUT': 30
68
}
69
70
0 commit comments