Flavio Copes
Read post

How I fixed a stuck Cloudflare Pages build queue

A Cloudflare Pages build queue got stuck when one build hung for five hours, blocking 35 queued builds behind it. The root cause was parallel coding agents pushing ~60 commits in 20 minutes — Pages queues every push and doesn't skip superseded builds. The fix involved two API calls: canceling the stuck build by its deployment ID, then bulk-canceling all stale queued builds except the newest one using a jq filter. Key signals to watch for: a deployment stuck in 'build:active' far longer than normal, and deploy hooks returning HTTP 304.

    #cicd#rest-api#cloudflare
Aug 05•4m read time•From flaviocopes.com
Post cover image
Table of contents
How did it happen?How do you see the build queue?Cancel the stuck buildSkip the stale buildsWhat I learned
52 Impressions
Flavio Copes's image
Flavio Copes

202 Followers

•

1.1K Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard