fix(ops): self-restart/stop של גשר-המארח מחזיר 200 (detached) #159
Reference in New Issue
Block a user
Delete Branch "worktree-ops-selfrestart"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
המשך ל-#157. הפעלה-מחדש/עצירה של
legal-court-fetch-serviceמתוך ה-endpoint של עצמו הורגת את התהליך לפני שהוא מספיק להשיב — הלקוח קיבל 502 מטעה למרות שה-pm2 restart בוצע בפועל (אומת: uptime נמוך + restart_time עלה). התיקון: פעולה-עצמית מנותקת (sleep 1; pm2 ...) כך שתגובת ה-HTTP נשלחת לפני שהתהליך מת, ומחזירה{ok:true, deferred:true}. שאר היעדים ללא שינוי. שם-עצמי דרךCOURT_FETCH_SERVICE_PM2_NAME(ברירת-מחדלlegal-court-fetch-service).שינוי מארח-בלבד (אין צורך ב-Coolify redeploy) — נטען ב-
pm2 restart legal-court-fetch-service.🤖 Generated with Claude Code