You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
deploy: replace post-migrate-db / post-deploy-worker sleeps with real readiness checks
The two `sleep 180` jobs were workarounds from when pg-migration and
worker containers had no healthcheck, so ECS service-stability returned
on container start instead of on actual readiness (see commits
36cc92f, af51fcd, fbee5d7). Now that prerender + prerender-
manager have proven the healthcheck-based approach (dbdfc33), apply
the same pattern to the other two services so we can drop the heuristic
sleeps from the critical path.
pg-migration: append `touch /tmp/migrations-complete` to the migration
CMD and add a HEALTHCHECK that requires the sentinel. Service-stability
now waits for migrations to actually finish, not just for ECS to start
the task.
worker: pass `--port=3000` in the staging/prod startup scripts so
worker-manager mounts its existing readiness endpoint (`GET /` returns
503 until `isReady = true`, then 200), and add a curl-based HEALTHCHECK
on it.
Workflow: flip `wait-for-service-stability: true` on both deploys, set
`timeout-minutes: 10`, delete the two `sleep 180` wait jobs, and rewire
the `needs:` of dependents (`deploy-ai-bot`, `deploy-bot-runner`,
`deploy-worker`, `deploy-realm-server`, `finalize-deployment`).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments