25 pages for drain.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
console
Claude Developer Platform · in the page
agents-and-tools/mcp-tunnels/console
…can rotate, redeploy with the new value, and let the old connections drain. </Note> ## Add a CA certificate Anthropic verifies [inner TLS](https://platform.claude.com/docs/en/agents-and-tools/mcp-t…
deploy-helm
Claude Developer Platform · in the page
agents-and-tools/mcp-tunnels/deploy-helm
…t completes, any pod that restarts with the old token (eviction, node drain, OOM) cannot reconnect. Update the Secret promptly after rotating; for stricter availability requirements, use programmatic…
advisor-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/advisor-tool
…"text": "Use a channel-based coordination pattern. The tricky part is draining in-flight work during shutdown: close the input channel first, then wait on a WaitGroup..." } }, { "t…
browser-use-sdk
Claude Developer Platform · in the page
agents-and-tools/tool-use/browser-use-sdk
…kend.tabs() ], state_changes=self.backend.drain_changes(), ) def navigate( self, context: BetaToolsetCallContext, input: BetaBrowserNavigateInput…
mid-conversation-effort-example
Claude Developer Platform · in the page
build-with-claude/mid-conversation-effort-example
…return new ToolOutput("(" + error + ")", true); } // Drain stdout on another thread so a filled pipe cannot stall the timeout wait that follows. CompletableFuture<String> output…
before_id is the first_id from a previous response
Claude Developer Platform · in the page
manage-claude/compliance-integration-patterns
…pipeline ingesting it, you want to avoid re-reading pages you already drained, and you have a durable place to persist a cursor between runs | ### Window polling Set `created_at.lt` at least 1 minut…
inference-hooks-endpoint
Claude Developer Platform · in the page
manage-claude/inference-hooks-endpoint
…onnection open between verdicts def do_POST(self): # Drain the body; transcripts can be megabytes. self.rfile.read(int(self.headers.get("Content-Length", 0))) verd…
spawn.sh: called once per claimed work item
Claude Developer Platform · in the page
managed-agents/self-hosted-sandboxes
…, reclaim_older_than_ms=2000, drain=True, auto_stop=False, ): await client.beta.environments.work.worker…
self-hosted-sandboxes-reference
Claude Developer Platform · in the page
managed-agents/self-hosted-sandboxes-reference
…---------------------------------------------------------------- | | `drain` (go: `Drain`) | Whether to stop polling once the queue is em…
self-hosted-sandboxes-workers
Claude Developer Platform · in the page
managed-agents/self-hosted-sandboxes-workers
…Start the worker when `session.status_run_started` fires. The handler drains the queue and hands each claimed work item to `handle_item()` (typescript: `handleItem()`; go: `HandleItem()`), which downl…
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…wait client.interrupt() print("Task interrupted!") # Drain the interrupted task's messages (including its ResultMessage) async for message in client.receive_response():…
Claude Code changelog
Claude Code CLI · in the page
changelog
…`Box`; `bold` is deprecated in favor of `weight` * Added `--shutdown-drain-sec` to `claude self-hosted-runner orchestrator`: on SIGTERM it stops polling and gives the poll in flight and running spawn…
Claude apps gateway deployment and operations
Claude Code CLI · in the page
claude-apps-gateway-deploy
…flight finish before it exits. It waits up to 25 seconds, called the drain window, then closes whatever is still open. A `SIGINT`, such as Ctrl+C in a terminal, starts the same drain, and a second si…
Error reference
Claude Code CLI · in the page
errors
…-workspace spend caps in the Console to prevent a single project from draining the org balance. See [Manage costs effectively](/docs/en/costs.md). ### Could not update your spend limit The server re…
Run Claude Code programmatically
Claude Code CLI · in the page
headless
…r reads the stream slowly, Claude Code waits for the queued output to drain before exiting, scaling the wait with how much is still queued, capped at 30 seconds. The following example uses [jq](https…
Choose a permission mode
Claude Code CLI · in the page
permission-modes
…e flag * Applying infrastructure changes to a protected IaC scope, or draining and removing cluster nodes * Writes to a shared compute cluster that reach beyond the resource you named, such as a label…
Self-hosted environments
Claude Code CLI · in the page
self-hosted-environments
…ted when you run it at a `--capacity` above one or with a positive `--drain-grace-sec`. The minimum fleet size is therefore the number of owners you expect to be active at once, counting users and Cl…
Customize sessions in self-hosted environments
Claude Code CLI · in the page
self-hosted-environments-configuration
…ed an archive or delete before the process exited. * The runner was draining. * The session outlasted its [`--kill-session-after-min`](/docs/en/self-hosted-environments-reference#runner-cli-flags)…
Deploy self-hosted environments to production
Claude Code CLI · in the page
self-hosted-environments-deploy
…troyed when the process exits, with `--capacity 1` and the default `--drain-grace-sec 0` so each container serves exactly one session. At a higher capacity, or with a positive drain grace, one contain…
Self-hosted environments quickstart
Claude Code CLI · in the page
self-hosted-environments-quickstart
…Nothing left running**: the log shows `[runner:exit] account workload drained — exiting`. The runner [exits by design](/docs/en/self-hosted-environments#runner-lifecycle) once it's no longer running a…
Self-hosted environments reference
Claude Code CLI · in the page
self-hosted-environments-reference
…M` or `SIGINT`, keep serving the sessions already attached instead of draining them, then release whatever is still attached N minutes later and exit. Raise your host's stop timeout before you set thi…
Week 34 · August 17–21, 2026
Claude Code CLI · in the page
whats-new/2026-w34
…ached sessions](/docs/en/self-hosted-environments-deploy.md#defer-the-drain-past-the-first-signal) for a set number of minutes after SIGTERMSelf-hosted runners accept `--proxy-authorization-command` o…
Genetic drift in a bottle: Buri's 107 fruit-fly populations
Claude Documentation · in the page
claude-science/example-gallery/bio-drift
…the way the 107 frequencies, counted at generations 1, 5, 10, and 19, drain from the middle third into the outer thirds and from there into the 2 ends, 0 and 1, which no bottle leaves. ## Data This…
Set up an MCP tunnel
Claude Documentation · in the page
connectors/mcp-tunnels/setup
…, restart cloudflared with the new value, and let the old connections drain. **Helm** **1. Increment the token version** Increment `tunnel.tokenVersion` in `values.yaml`. **2. Create a Tunnels API…
Compliance API
Claude Documentation · in the page
government/org-admin/compliance-api
…for each further page until `has_more` is false. After all pages are drained, advance your watermark to the newest `created_at` you saw. Event `id` values are stable and unique, so your collector can…