Merge branch 'main' into Transfer-charges

This commit is contained in:
maverick
2026-06-12 15:00:08 +05:30
committed by GitHub
4 changed files with 123 additions and 14 deletions

View File

@@ -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)" \