oz0-node drain
Usage and flags for oz0-node drain.
For: Operators and developers looking up a command.
Ask the node that runs with this data directory to drain, as it does when it is stopped: it takes no new job and starts no new session, and what runs finishes within its stop grace. The node keeps running; stop it afterwards, and its stop waits only for what is left of the same grace. With --wait, return once nothing runs there or the grace has passed. A Kubernetes pod's preStop hook runs this.
Usage
oz0-node drain [flags]
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | duration | 1h0m0s | the longest --wait waits |
--wait | bool | wait until nothing runs on the node, or its stop grace has passed |
Inherited flags
| Flag | Type | Default | Description |
|---|---|---|---|
--data-dir | string | ~/.local/share/orchestrator-zero-node | where the node keeps its identity, uv, Python, runtimes and state |
--log-level | string | info | log level: debug, info, warn or error |
See all oz0-node commands and the global flags.