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.
Table of contents
How did it happen?How do you see the build queue?Cancel the stuck buildSkip the stale buildsWhat I learned52 Impressions