busy-lunch-15701
05/20/2026, 1:56 AMtall-airline-16756
05/20/2026, 1:56 AMtall-airline-16756
05/20/2026, 1:56 AMdrain_timeout controls how long the agent waits for active jobs before exiting. It defaults to 30 minutes (1800s) and is configurable.
• In production (start) mode, graceful shutdown (drain period) is enabled by default. In dev mode, the drain period is skipped for faster restarts.
• For self-hosted setups, ensure the agent process receives the signal directly (use exec in wrapper scripts) so signals aren’t blocked.
If you’d like, tell me how you run the agent (Docker, systemd, Kubernetes, or a wrapper script) and I’ll give exact steps or config snippets for clean shutdown.
Sources: Deployment reliability on LiveKit Cloud | LiveKit | Server options | LiveKit Documentation, with interactive elements