fix: spec audit — align specs with reality (xmpp_bot 5807, dashboard missing endpoints, article_processor X-Lines, api_proxy capability, health_check JSON escape); fix 5802->5807 across dashboard/health_check/watchdog consumers

This commit is contained in:
hmo
2026-08-06 16:48:16 +08:00
parent 1dd3f9aad5
commit a8b46178e3
15 changed files with 131 additions and 89 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
"""
"""
xxm health check. Runs every 5 min via Task Scheduler.
Checks:
1. Is xmpp_bot process alive? If not → restart
@@ -117,7 +117,7 @@ def main():
# This catches "process alive but XMPP dead" — the most common failure mode.
try:
import urllib.request, json
req = urllib.request.Request("http://127.0.0.1:5802/health")
req = urllib.request.Request("http://127.0.0.1:5807/health")
resp = json.loads(urllib.request.urlopen(req, timeout=5).read())
if not resp.get("xmpp_connected", True):
wlog("CRIT: xmpp_connected=false via /health — forcing restart")