Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.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

Use it now Notable Improvements
JSON All of v2.1.274
Use it nowTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
GatewayArea: what it touches
ImprovementsKind: in v2.1.274,
What probably matters to youSection of the release
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
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