Skip to content

Commit 4c878b0

Browse files
shaohuzhang1liuruibin
authored andcommitted
feat: Add connection pool connection check parameters (#3905)
1 parent f79ae01 commit 4c878b0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

apps/smartdoc/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ def get_db_setting(self) -> dict:
118118
"POOL_SIZE": 20,
119119
"MAX_OVERFLOW": int(self.get('DB_MAX_OVERFLOW')),
120120
"RECYCLE": 1800,
121-
"TIMEOUT": 30
121+
"TIMEOUT": 30,
122+
'PRE_PING': True
122123
}
123124
}
124125

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ pylint = "3.3.6"
6464
pydub = "0.25.1"
6565
cffi = "1.17.1"
6666
pysilk = "0.0.1"
67-
django-db-connection-pool = "1.2.5"
67+
django-db-connection-pool = "1.2.6"
6868
opencv-python-headless = "4.11.0.86"
6969
pymysql = "1.1.1"
7070
accelerate = "1.6.0"

0 commit comments

Comments
 (0)