fix(verify): functional_health/mofin_health 新鲜度阈值 1h→16h(两者均交易时段运行,夜间必假警报)

This commit is contained in:
hmo
2026-07-21 02:14:06 +08:00
parent b1db424b8d
commit 54652bff12
+4 -2
View File
@@ -58,10 +58,12 @@ for dead in ['Cron监护-高频', '全局cron健康监控-每10分']:
print()
print('=== 3. 输出物生成 ===')
for name, path, max_h in [
('functional_health.json', '/home/hmo/MoFin/gateway/logs/functional_health.json', 1),
# L1 和 mofin_health 都是交易时段运行(9-16,20-22 工作日),过夜间隔约13h,
# 阈值 16h 消除夜间/凌晨部署时的假警报;真挂掉(交易日白天不更新)仍会抓到
('functional_health.json', '/home/hmo/MoFin/gateway/logs/functional_health.json', 16),
('hygiene_report.json', '/home/hmo/MoFin/gateway/logs/hygiene_report.json', 26),
('meta_watchdog.json', '/home/hmo/MoFin/gateway/logs/meta_watchdog.json', 2),
('mofin_health.json', '/home/hmo/web-dashboard/static/mofin_health.json', 1),
('mofin_health.json', '/home/hmo/web-dashboard/static/mofin_health.json', 16),
]:
if not os.path.exists(path):
check(name, False, '不存在')