jack 1 ヶ月 前
コミット
26cb31f09f
1 ファイル変更1 行追加1 行削除
  1. 1 1
      py/core/providers/database/base.py

+ 1 - 1
py/core/providers/database/base.py

@@ -33,7 +33,7 @@ class SemaphoreConnectionPool:
                 min_size=200,
                 max_size=self.postgres_configuration_settings.max_connections,
                 statement_cache_size=self.postgres_configuration_settings.statement_cache_size,
-                timeout=0,             # 获取连接超时 60 秒
+                timeout=120,             # 获取连接超时 60 秒
                 command_timeout=120,     # 单个查询超时 30 秒(可选)
             )