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
|
### 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)
|
- [ ] Provider registry AI entry → Active (when ready)
|
||||||
- [x] CRM Core Platform docs (6.0–6.3) synced in registry / progress / API / glossary
|
- [x] CRM Core Platform docs (6.0–6.3) synced in registry / progress / API / glossary
|
||||||
|
|
||||||
|
|||||||
@ -250,14 +250,20 @@ docker compose logs --tail=100 crm-service
|
|||||||
|
|
||||||
code, health = run(
|
code, health = run(
|
||||||
app,
|
app,
|
||||||
"curl -sf http://127.0.0.1:8003/health || curl -sf http://192.168.10.162:8003/health",
|
"""
|
||||||
)
|
set -e
|
||||||
if code != 0 or "ok" not in health.lower() and '"status"' not in health:
|
for i in 1 2 3 4 5 6 7 8 9 10; do
|
||||||
# retry once after short wait
|
if curl -sf http://127.0.0.1:8003/health; then
|
||||||
run(app, "sleep 8")
|
echo
|
||||||
code, health = run(
|
echo CRM_HEALTH_OK
|
||||||
app,
|
exit 0
|
||||||
"curl -sf http://127.0.0.1:8003/health || curl -sf http://192.168.10.162:8003/health",
|
fi
|
||||||
|
sleep 3
|
||||||
|
done
|
||||||
|
curl -sv http://127.0.0.1:8003/health || true
|
||||||
|
exit 1
|
||||||
|
""",
|
||||||
|
timeout=120,
|
||||||
)
|
)
|
||||||
if code != 0:
|
if code != 0:
|
||||||
raise RuntimeError(f"CRM health failed: {health}")
|
raise RuntimeError(f"CRM health failed: {health}")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user