Mark CRM production deploy verified and harden health wait.
Document successful CRM 6.3 prod smoke checks and retry CRM /health during deploy. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
064d67f099
commit
735f343e0d
@ -17,7 +17,7 @@ CRM Core Platform (Phases 6.0–6.3) is complete: foundation, master data, sales
|
||||
|
||||
### Exit Criteria
|
||||
|
||||
- [ ] Production deploy verified for CRM 6.3 + accounting
|
||||
- [x] Production deploy verified for CRM 6.3 + accounting (local + HTTPS health)
|
||||
- [ ] Provider registry AI entry → Active (when ready)
|
||||
- [x] CRM Core Platform docs (6.0–6.3) synced in registry / progress / API / glossary
|
||||
|
||||
|
||||
@ -250,17 +250,23 @@ docker compose logs --tail=100 crm-service
|
||||
|
||||
code, health = run(
|
||||
app,
|
||||
"curl -sf http://127.0.0.1:8003/health || curl -sf http://192.168.10.162:8003/health",
|
||||
"""
|
||||
set -e
|
||||
for i in 1 2 3 4 5 6 7 8 9 10; do
|
||||
if curl -sf http://127.0.0.1:8003/health; then
|
||||
echo
|
||||
echo CRM_HEALTH_OK
|
||||
exit 0
|
||||
fi
|
||||
sleep 3
|
||||
done
|
||||
curl -sv http://127.0.0.1:8003/health || true
|
||||
exit 1
|
||||
""",
|
||||
timeout=120,
|
||||
)
|
||||
if code != 0 or "ok" not in health.lower() and '"status"' not in health:
|
||||
# retry once after short wait
|
||||
run(app, "sleep 8")
|
||||
code, health = run(
|
||||
app,
|
||||
"curl -sf http://127.0.0.1:8003/health || curl -sf http://192.168.10.162:8003/health",
|
||||
)
|
||||
if code != 0:
|
||||
raise RuntimeError(f"CRM health failed: {health}")
|
||||
if code != 0:
|
||||
raise RuntimeError(f"CRM health failed: {health}")
|
||||
finally:
|
||||
app.close()
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user