Skip to content

Fly deploy: always resume app after deploy (lifts post-crash suspension)#42

Merged
dougdevitre merged 1 commit into
mainfrom
claude/fly-auto-resume-v2
May 16, 2026
Merged

Fly deploy: always resume app after deploy (lifts post-crash suspension)#42
dougdevitre merged 1 commit into
mainfrom
claude/fly-auto-resume-v2

Conversation

@dougdevitre
Copy link
Copy Markdown
Owner

Why

The Fly app cotrackpro-talk got into a "Suspended" state during the boot-crash loop earlier today (the workflow hit max-restart-count before we fixed the JSON escaping + TWILIO_ACCOUNT_SID). Now even a healthy deploy doesn't lift that flag — the Fly edge keeps returning:

HTTP/2 403
x-deny-reason: host_not_allowed
Host not in allowlist

The only way to unsuspend is fly apps resume. There's no Fly dashboard button for it.

Fix

Add an idempotent fly apps resume step after Deploy. It runs on every workflow execution; if the app is already running, the command no-ops. || true swallows the non-zero exit some flyctl versions return for "nothing to resume."

Test plan


Generated by Claude Code

When the app cycles through crash-restart 10 times (e.g., on a bad
env var) Fly marks it "Suspended" at the edge layer. A subsequent
healthy deploy doesn't lift that flag automatically — the Fly proxy
keeps returning 403 with x-deny-reason: host_not_allowed until the
app is explicitly resumed.

Add an idempotent `fly apps resume` step after Deploy. `|| true`
because the command exits 0 when the app is already running but
exits non-zero on certain "nothing to resume" responses across
flyctl versions; both outcomes are fine.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cotrackpro-talk Ready Ready Preview, Comment May 16, 2026 5:31pm

Request Review

@dougdevitre dougdevitre merged commit a7b8fc6 into main May 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants