spike(s2): run_optimization PASS(vnpy_ctastrategy 1.4.1 + spawn pool + max_workers)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
"""S2 spike:run_optimization 多进程。验证在 scripts/spike_s2_optimization.py(容器)。
|
||||
VERDICT: PASS。关键修正:run_optimization 是 BacktestingEngine 方法(vnpy 4.4.0 重构),
|
||||
非顶层函数;multiprocessing 用 spawn(S1 已证容器内工作)。
|
||||
"""
|
||||
|
||||
|
||||
def test_s2_verdict_recorded():
|
||||
findings = {
|
||||
"import": "OK (vnpy_ctastrategy 1.4.1)",
|
||||
"run_optimization": "BacktestingEngine 方法 (optimization_setting, output, max_workers)",
|
||||
"multiprocessing": "spawn (get_context, S1 已证容器内工作)",
|
||||
"max_workers_recommend": "2 (NAS braswell 2 核)",
|
||||
}
|
||||
# S2 VERDICT: PASS
|
||||
assert findings["import"].startswith("OK")
|
||||
assert "BacktestingEngine 方法" in findings["run_optimization"]
|
||||
Reference in New Issue
Block a user