David 1 月之前
父节点
当前提交
4e27448e68
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      common/database_dml_koi.py

+ 2 - 3
common/database_dml_koi.py

@@ -496,7 +496,6 @@ def get_scaler_model_from_mongo(args: Dict[str, Any], only_feature_scaler: bool
         raise RuntimeError(f"❌ 未知系统异常: {str(e)}") from e
     finally:
         # ------------------------- 资源清理 -------------------------
-        # if client:
-        #     client.close()
-        pass
+        if client:
+            client.close()