mirror of
https://github.com/we-promise/sure.git
synced 2026-07-12 21:05:20 +00:00
Merge branch 'main' into Transfer-charges
This commit is contained in:
8
.github/workflows/preview-deploy.yml
vendored
8
.github/workflows/preview-deploy.yml
vendored
@@ -361,7 +361,13 @@ jobs:
|
||||
last_error=""
|
||||
mkdir -p "$diagnostics_dir"
|
||||
|
||||
for attempt in $(seq 1 40); do
|
||||
# ~100 polls x ~3.5s = up to ~6 min. The preview must cold-start the
|
||||
# container (≈1.3 GB image pull + sandbox init) and generate the full
|
||||
# demo dataset before previewReady flips. A real Cloudflare standard-1
|
||||
# run measured previewReady at ~195s (rails ~46s, demo data ~149s) —
|
||||
# the old 40-poll (~140s) budget would have failed a working preview.
|
||||
# Keep generous headroom; the loop still breaks early on ready/failed.
|
||||
for attempt in $(seq 1 100); do
|
||||
if curl -fsS --connect-timeout 5 --max-time 15 "$PREVIEW_URL/_container_status" -o "$diagnostics_file"; then
|
||||
if jq -e . "$diagnostics_file" >/dev/null 2>&1; then
|
||||
jq -c --argjson attempt "$attempt" --arg at "$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
|
||||
|
||||
Reference in New Issue
Block a user