From e77d9767ceb277ccf3966a0289016c8df83bfcc1 Mon Sep 17 00:00:00 2001 From: hmo Date: Mon, 10 Aug 2026 22:46:36 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20cron=E7=B3=BB=E7=BB=9F=E5=AE=A1?= =?UTF-8?q?=E8=A7=86=E6=95=B4=E7=90=86=EF=BC=88=E5=BD=92=E6=A1=A35?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1+=E6=A0=B9=E5=9B=A0fix=5Fgateway=5Fport?= =?UTF-8?q?=E6=AD=BB=E5=BE=AA=E7=8E=AF=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/system-audit-20260810.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/docs/system-audit-20260810.md b/docs/system-audit-20260810.md index 313a4bf2..68790f9f 100644 --- a/docs/system-audit-20260810.md +++ b/docs/system-audit-20260810.md @@ -243,3 +243,32 @@ git.yoin.fun/hmo/MoFin.git ←← 246 的 origin(真正权威远端) ### 部署启示 知微信息 = hermes cron + LLM + XMPP 推送。LLM 不稳定→简报静默失败,部署新策略需监控此链路。 + +## 十一、Cron 系统审视与整理(2026-08-10 晚) + +### 背景 +63个cron从MoFin系统从无到有过程中陆续加入,含不合时宜部分。系统性审视分类处理。 + +### 已归档(pause,5个) +| cron | 原因 | +|---|---| +| 自选买入区提醒-盘前午间尾盘 | 被候选管道promote_candidates替代 | +| 系统健康检查-开盘前 | 被morning_health_check替代 | +| 300308入场信号紧盯 + 午后紧盯 | 中际旭创盯盘,确认停用 | +| 小果市场筛选-全市场 | 小果已归档,筛选残留 | + +### 根因发现(解释8/3起所有LLM cron停摆) +**fix_gateway_port.py 看门狗反噬死循环**: +- 每5分钟cron检测8643端口/session → LLM端点故障误判异常 +- → sudo systemctl restart gateway → 只等5s(冷启动20-100s)误判失败 +- → 下次又restart → 死循环(8/3起gateway每5分钟被重启) +- 后果:所有LLM cron停摆(市场精选/策略时效/持仓复查/开盘简报/策略评估) + +### 已修复:fix_gateway_port v3(87808165) +1. 重启冷却30分钟(防循环) +2. 等待120s(覆盖冷启动) +3. LLM端点故障不重启只告警(重启gateway无用) + +### 待观察(第2步) +- B类3个cron(市场精选/策略时效/持仓复查)明天是否恢复 +- D类持续error(策略评估/候选过滤等)逐个排查