From 5a97442520efa6bed4e6c3d09222386c2080d902 Mon Sep 17 00:00:00 2001 From: hmo Date: Thu, 13 Aug 2026 23:28:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20meta=5Fwatchdog=E5=88=A0=E9=99=A4L0=20ag?= =?UTF-8?q?ents=5Fhealth=5Fcheck=E6=A3=80=E6=9F=A5=E9=A1=B9=E2=80=94?= =?UTF-8?q?=E2=80=94MoFin=E6=97=A0=E8=AF=A5=E7=BB=84=E4=BB=B6(deploy/profi?= =?UTF-8?q?le-scripts=E6=97=A0agents=5Fhealth=5Fcheck.py),=E4=B8=94L1=20fu?= =?UTF-8?q?nctional=5Fhealth=5Fcheck=E5=B7=B2=E8=A6=86=E7=9B=96=E5=81=A5?= =?UTF-8?q?=E5=BA=B7=E6=A3=80=E6=9F=A5=E5=8A=9F=E8=83=BD,=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E9=A1=B9=E6=98=AF=E6=AD=BB=E4=BB=A3=E7=A0=81=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E8=AF=AF=E6=8A=A5(=E6=A3=80=E6=9F=A5MoFin=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E7=9A=84last=5Fhealth=5Fcheck.json,=E4=BD=86AgentsMee?= =?UTF-8?q?ting=E7=89=88=E5=86=99=E7=9A=84=E6=98=AFAgentsMeeting=E8=B7=AF?= =?UTF-8?q?=E5=BE=84)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/meta_watchdog.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/deploy/profile-scripts/meta_watchdog.py b/deploy/profile-scripts/meta_watchdog.py index 2e0c24de..9aee6ae9 100644 --- a/deploy/profile-scripts/meta_watchdog.py +++ b/deploy/profile-scripts/meta_watchdog.py @@ -1,14 +1,15 @@ #!/usr/bin/env python3 """meta_watchdog.py — L4 自检系统的自检(看门狗的看门狗) -检查 L0-L3 各自检组件本身是否在正常运转: -- L0 agents_health_check: last_health_check.json 是否 <10min +检查 L1-L3 各自检组件本身是否在正常运转: - L1 functional_health_check: functional_health.json 是否 <20min(交易时段) - L2 system_hygiene_audit: hygiene_report.json 是否 <26h(每日) - L3 self_repair: repair_state.json 存在性 + cron 是否注册 - mofin_health 采集: mofin_health.json 是否 <20min(交易时段) - XMPP 桥: :5805 是否可发(self_repair 的报备通道) +(2026-08-13 删除 L0 agents_health_check 检查项:MoFin 无该组件,且 L1 functional_health_check 已覆盖健康检查功能,检查项是死代码) + 任何一层死了 → 推 XMPP 点名(这是最后的兜底,必须直达用户)。 频率:每小时(cron)。输出 gateway/logs/meta_watchdog.json。 """ @@ -18,9 +19,6 @@ from datetime import datetime OUT = '/home/hmo/MoFin/gateway/logs/meta_watchdog.json' LAYERS = [ - {"layer": "L0 agents_health_check", "file": "/home/hmo/MoFin/gateway/temp/last_health_check.json", - "max_age_min": 10, "when": "always", - "repair": "crontab */5 agents_health_check.py 停摆,检查系统 crontab"}, {"layer": "L1 functional_health", "file": "/home/hmo/MoFin/gateway/logs/functional_health.json", "max_age_min": 25, "when": "trading", "repair": "L1 cron 停摆,检查 hermes cron 引擎"},