Follow Discord
Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.274 ·

claude gateway gets graceful shutdown on SIGTERM/SIGINT

claude gateway now shuts down gracefully on SIGTERM/SIGINT instead of exiting abruptly

TierUse it nowhow much it should matter to you
Useful3my rating, 1 to 5
Signal2worth watching, 1 to 5
AreaGatewaywhat it touches
KindImprovementsin v2.1.274,
Use it now Notable

claude gateway now shuts down gracefully on SIGTERM/SIGINT instead of exiting abruptly

What

The claude gateway command now installs signal handlers for SIGTERM and SIGINT (the standard shutdown and interrupt signals). On receiving one, it stops accepting new connections and drains any in-flight requests, waiting up to CLAUDE_GATEWAY_DRAIN_TIMEOUT_MS (default 25000ms) plus a 3-second grace buffer before exiting. If a second signal arrives while shutting down, the gateway force-closes and exits immediately.

Why

This lets requests already in progress finish cleanly when the gateway is stopped or restarted, instead of being cut off mid-flight, while still allowing an impatient operator to force an immediate exit.

Read from
Names in the bundleCLAUDE_GATEWAY_DRAIN_TIMEOUT_MS
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up CLAUDE_GATEWAY_DRAIN_TIMEOUT_MS, on Claude apps gateway deployment and operations. * **The drain window**: set the `CLAUDE_GATEWAY_DRAIN_TIMEOUT_MS` environment variable on the gateway container to a positive whole number of milliseconds, such as `120000`. The gateway ignores a value in any other form, such as `120s`, an… claude-apps-gateway-deploy see the edit
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up CLAUDE_GATEWAY_DRAIN_TIMEOUT_MS, on Claude apps gateway deployment and operations.
Anthropic's release notes agreeFixed Claude apps gateway cutting every open stream on SIGTERM: it now lets in-flight requests finish for up to 25 seconds before exiting…
The name it cites is new in this buildNew in this build: CLAUDE_GATEWAY_DRAIN_TIMEOUT_MS

See this entry in the whole of v2.1.274 →

Feedback