部署修复:healthz 重试从 60s 扩大到 150s,适配 pre-warm 125s

This commit is contained in:
2569718930@qq.com
2026-05-26 03:57:22 +08:00
parent f5aefb27e3
commit ee3d489d8b
+2 -2
View File
@@ -23,13 +23,13 @@ docker compose up -d
# Wait for backend to be ready (retry up to 60s) # Wait for backend to be ready (retry up to 60s)
echo "Waiting for backend..." echo "Waiting for backend..."
for i in $(seq 1 12); do for i in $(seq 1 30); do
sleep 5 sleep 5
if curl -fsSo /dev/null --max-time 5 "https://api.polyweather.top/healthz"; then if curl -fsSo /dev/null --max-time 5 "https://api.polyweather.top/healthz"; then
echo "✅ healthz ready after ${i}x5s" echo "✅ healthz ready after ${i}x5s"
break break
fi fi
echo " retry $i/12..." echo " retry $i/30..."
done done
FAILED=0 FAILED=0