修复: 全局参数线程安全 + copy保护 + 回调只清除受影响算法缓存
This commit is contained in:
@@ -2098,7 +2098,8 @@ class AlgorithmManager:
|
||||
|
||||
algo_params = self.default_params.get(algorithm_type, {}).copy()
|
||||
# 三级合并:默认参数 → 全局参数 → 绑定级参数
|
||||
global_p = self._global_params.get(algorithm_type, {})
|
||||
with self._update_lock:
|
||||
global_p = self._global_params.get(algorithm_type, {}).copy()
|
||||
if global_p:
|
||||
algo_params.update(global_p)
|
||||
if params:
|
||||
|
||||
Reference in New Issue
Block a user