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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user