Skip to content

Commit ccf43bb

Browse files
authored
feat: add pool options recycle (#3080)
1 parent 8d8de53 commit ccf43bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/smartdoc/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ def get_db_setting(self) -> dict:
114114
"ENGINE": self.get('DB_ENGINE'),
115115
"POOL_OPTIONS": {
116116
"POOL_SIZE": 20,
117-
"MAX_OVERFLOW": int(self.get('DB_MAX_OVERFLOW'))
117+
"MAX_OVERFLOW": int(self.get('DB_MAX_OVERFLOW')),
118+
'RECYCLE': 30 * 60
118119
}
119120
}
120121

0 commit comments

Comments
 (0)