fix: 每日盘前重评补全自选池——batch_reassess同时启动holding+watchlist(老莫第4类重评要求所有池子一一重评,原只评持仓)
This commit is contained in:
@@ -28,11 +28,17 @@ import subprocess as _sp
|
||||
analysis_result = {"mode": "detached"}
|
||||
try:
|
||||
_log = open("/tmp/holdings_12d_daily.log", "a")
|
||||
# 2026-08-19 修复:老莫第4类重评要求"所有池子(自选+持仓)一一重评"
|
||||
# 原只启动 holding 12维LLM,自选池无盘前LLM重评 → 现在同时启动 holding + watchlist
|
||||
_sp.Popen(
|
||||
["python3", "/home/hmo/.hermes/profiles/position-analyst/scripts/batch_reassess.py",
|
||||
"--type", "holding", "--today"],
|
||||
stdout=_log, stderr=_log, start_new_session=True)
|
||||
print(" ✅ 12维分析已后台启动,日志: /tmp/holdings_12d_daily.log(结果落DB,不阻塞盘前流程)")
|
||||
_sp.Popen(
|
||||
["python3", "/home/hmo/.hermes/profiles/position-analyst/scripts/batch_reassess.py",
|
||||
"--type", "watchlist", "--today"],
|
||||
stdout=_log, stderr=_log, start_new_session=True)
|
||||
print(" ✅ 持仓+自选12维LLM分析已后台启动(各自落DB,不阻塞盘前流程)")
|
||||
except Exception as e:
|
||||
print(f" ⚠️ 12维分析启动失败: {e}")
|
||||
analysis_result = {"mode": "detached", "error": str(e)[:100]}
|
||||
|
||||
Reference in New Issue
Block a user