From ccf43bbcd9a8f4da3230c406b557dad155bf3ced Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Tue, 13 May 2025 16:56:06 +0800 Subject: [PATCH] feat: add pool options recycle (#3080) --- apps/smartdoc/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/smartdoc/conf.py b/apps/smartdoc/conf.py index cdbe441f9..8da97883c 100644 --- a/apps/smartdoc/conf.py +++ b/apps/smartdoc/conf.py @@ -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 } }