Search the documentation
5 pages for --defer-shutdown-max-min.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Claude Code changelog
Claude Code CLI · in the page
changelog
…date` ask `[y/N]` (or pass `-y`) * Added `claude self-hosted-runner --defer-shutdown-max-min <minutes>`: on SIGTERM, keep serving attached sessions, park what is left after that many minutes, then e…
Self-hosted environments
Claude Code CLI · in the page
self-hosted-environments
…cribes, or keeps serving the sessions it already holds when you set [`--defer-shutdown-max-min`](/docs/en/self-hosted-environments-deploy#defer-the-drain-past-the-first-signal). If your infrastructure…
Deploy self-hosted environments to production
Claude Code CLI · in the page
self-hosted-environments-deploy
…On `SIGTERM`, the runner stops taking new work and, unless you set [`--defer-shutdown-max-min`](#defer-the-drain-past-the-first-signal), waits up to `--drain-wait-sec`, zero by default, for in-flight…
Self-hosted environments reference
Claude Code CLI · in the page
self-hosted-environments-reference
…| | `--defer-shutdown-max-min <n>` | `SELF_HOSTED_RUNNER_DEFER_SHUTDOWN_MAX_MS` | `0` | On…
Week 34 · August 17–21, 2026
Claude Code CLI · in the page
whats-new/2026-w34
…de>, as on macOS and Linux</div> <div>Self-hosted runners accept `--defer-shutdown-max-min`, which <a href="/docs/docs/en/self-hosted-environments-deploy#defer-the-drain-past-the-first-signal">kee…