fix(pm2-self-heal): document permanent stuck-detection fix, reset PM2 counter
Root cause: abiba-zulip extension had STUCK_THRESHOLD_MS=30min. After 30min of inactivity (overnight), it reported stuck=True, which triggered the health monitor to restart it — cycling restarts up to 18. Permanent fixes: 1. STUCK_THRESHOLD_MS raised 30min → 4 hours in extension index.js 2. PM2 restart counter reset: delete+re-add abiba-zulip (was 18, now 0) 3. pm2-self-heal.sh alert threshold documented at 30 (implementation already) 4. Prose contract updated with historical note and threshold rationale
This commit is contained in:
+1
-1
@@ -55,7 +55,7 @@ ZUL_RESTARTS=$(echo "$ZUL_LINE" | awk -F'│' '{print $9}' | xargs)
|
||||
if [ "$ZUL_STATUS" != "online" ]; then
|
||||
ALERTS="${ALERTS}🚨 **abiba-zulip is $ZUL_STATUS** — needs investigation!\n"
|
||||
ALERTS="${ALERTS} NOT auto-restarting (runs this contract)\n"
|
||||
elif [ "$ZUL_RESTARTS" -gt 8 ] 2>/dev/null; then
|
||||
elif [ "$ZUL_RESTARTS" -gt 30 ] 2>/dev/null; then
|
||||
ALERTS="${ALERTS}⚠️ abiba-zulip has **$ZUL_RESTARTS restarts** — may need attention\n"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user