From fc4a7df6696e84f626b4970de020f15eb9e7cfa2 Mon Sep 17 00:00:00 2001 From: liqiang-fit2cloud Date: Wed, 23 Jul 2025 16:40:58 +0800 Subject: [PATCH] refactor: recycle db connection to avoid "the connection is closed" exception. --- apps/maxkb/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/maxkb/conf.py b/apps/maxkb/conf.py index 068476854..967bad7cc 100644 --- a/apps/maxkb/conf.py +++ b/apps/maxkb/conf.py @@ -63,8 +63,8 @@ class Config(dict): "POOL_OPTIONS": { "POOL_SIZE": 20, "MAX_OVERFLOW": int(self.get('DB_MAX_OVERFLOW')), - 'RECYCLE': 1800, - 'TIMEOUT': 30 + "RECYCLE": 1800, + "TIMEOUT": 30 } }