Files
Nexus/docs/changelog/2026-06-07-health-monitor-flock-fail-count-fix.md
T
Nexus Agent 764703d401 fix(deploy): health_monitor flock 失败计数回传
flock 子 shell 递增后未回传 FAIL,导致 Layer 3 永不触发重启与 Telegram。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-07 20:53:14 +08:00

590 B

Changelog — health_monitor flock 失败计数修复

日期: 2026-06-07

摘要

修复 bump_fail_count 在使用 flock 时子 shell 未回传计数、导致 FAIL 恒为 0、Layer 3 永不触发重启/Telegram 的 bug。

动机

生产模拟巡检时发现连续 3 次 /health 失败后 last_restart 仍为空;bash -x 显示 FAIL=0/tmp/nexus_health_fail_count 已为 3。

涉及文件

  • deploy/health_monitor.sh

验证

# 阻断 127.0.0.1:8600 后连续执行 3 次 health_monitor.sh,第 3 次应触发 Telegram + docker restart