ci: 后端健康检查重试窗口加长到 5 分钟(首次迁移冷启动耗时)

This commit is contained in:
Sisyphus committed 2026-08-24 23:01:27 +08:00
1 parent 387be2c92e
commit 54f5f15b47
1 file changed
+1 -1
+1 -1
View File
@@ -126,7 +126,7 @@ jobs:
echo "===== 后端健康 (/health 容器内自检,带重试) ====="
BOK=0
for i in $(seq 1 24); do
for i in $(seq 1 60); do
if docker exec perler-lab-server node -e "fetch('http://localhost:8788/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))" 2>/dev/null; then BOK=1; break; fi
sleep 5
done