Search the documentation
4 pages for --retire-at.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Self-hosted environments
Claude Code CLI · in the page
self-hosted-environments
…rs. How your infrastructure stops a runner decides whether you need `--retire-at`. A kill that delivers `SIGTERM` needs no flag: the runner drains as [Shutdown timing](/docs/en/self-hosted-environmen…
Customize sessions in self-hosted environments
Claude Code CLI · in the page
self-hosted-environments-configuration
…ssion on another runner before the hook finishes. A release at the [`--retire-at`](/docs/en/self-hosted-environments-reference#runner-cli-flags) time follows the same two paths. During a `SIGTERM` dr…
Deploy self-hosted environments to production
Claude Code CLI · in the page
self-hosted-environments-deploy
…ernetes stops the pod before the runner finishes draining. * **With [`--retire-at`](/docs/en/self-hosted-environments-reference#runner-cli-flags)**: size the margin between the retire time and the hos…
Self-hosted environments reference
Claude Code CLI · in the page
self-hosted-environments-reference
…s soon as a release leaves it holding no sessions. `0` disables. | | `--retire-at <epoch-seconds>` | `SELF_HOSTED_RUNNER_RETIRE_AT` | unset | Ret…