fix: Postgres Fixes for Prod
All checks were successful
Deploy to Staging / Build Images (push) Successful in 1m34s
Deploy to Staging / Deploy to Staging (push) Successful in 23s
Deploy to Staging / Verify Staging (push) Successful in 2m36s
Deploy to Staging / Notify Staging Ready (push) Successful in 8s
Deploy to Staging / Notify Staging Failure (push) Has been skipped

This commit is contained in:
Eric Gullickson
2026-02-08 20:57:49 -06:00
parent 8248b1a732
commit c6b99ab29a
4 changed files with 32 additions and 11 deletions

View File

@@ -92,19 +92,18 @@ wait_for_health() {
if [[ $status -eq 0 ]]; then
return 0
elif [[ $status -eq 1 ]]; then
echo " ERROR: Container $container is unhealthy"
docker logs "$container" --tail 20 2>/dev/null || true
return 1
fi
# Still starting, wait
# Both "starting" and "unhealthy" are treated as transient during the wait period.
# Docker can report "unhealthy" briefly during start_period before the next check
# cycle transitions it back. Only the overall timeout should cause failure.
sleep 2
elapsed=$((elapsed + 2))
echo " Waiting for $container... (${elapsed}s/${TIMEOUT}s)"
done
echo " ERROR: Timeout waiting for $container"
echo " ERROR: Container $container did not become healthy within ${TIMEOUT}s"
docker logs "$container" --tail 20 2>/dev/null || true
return 1
}