Cloudflare extends Workers update grace period from 30s to 20 minutes for long-running AI inference
irvinebroque · x · 2026-10-13
A Cloudflare engineer detailed a change aimed at long-running agents and AI inference: the drain grace period for Workers runtime updates has been extended from 30 seconds to up to 20 minutes.
- Why: Inference requests can take minutes, and the old 30s drain window would cut off streaming responses and long requests during deploys.
- How it works: New HTTP requests go straight to the updated runtime, while previous-version processes keep handling existing work for up to 20 minutes. Streaming AI responses can finish on the old version, and existing WebSocket sessions can stay connected until the grace period ends.
- Caveats: The grace period applies per process; unfinished requests are still terminated when it ends. Developers should still design for WebSocket reconnection, safe retries, and state recovery, and Hibernation API connections may drop earlier.
A practical infra improvement for anyone building long-running agents or streaming AI products on Workers.
More from coding & agent
- Anchor Browser lands in Hermes Agent: cloud browser handles logins without pasting passwords — ghumare64 · 2026-12-02
- Developer uses Neon to fix the weirdest bugs Opus left in centrifuge controllers — jonathanberte · 2026-12-02
- NVIDIA launches Nemotron 4, built for long-running coding agents that work for days — nvidia · 2026-12-02
- Solo filmmaker makes 3.5-min AI short film: 21 shots with Midjourney, Seedance 2.5 and ElevenLabs — DavidmComfort · 2026-12-02
- Claude Code + ARIA via MCP: debugging agent evals from 4/12 to 9/12 — CoreWeaveDevs · 2026-12-02
- GitHub Copilot Fusion Max reportedly tops Terminal-Bench at 71.2% while undercutting rivals — DanWahlin · 2026-12-02