Guides ยท Technology
Graceful Shutdown Basics
Stop services safely
Graceful shutdown handles stop signals, drains traffic, waits for in-flight work, and closes resources to avoid errors during deploys or failures.
- signals
- drain
- timeouts
- in-flight
- cleanup
Handle Signals
Catch SIGTERM, stop new work, and start timers.
Drain
Stop accepting requests, wait for in-flight to finish within limits.
Clean Up
Close connections and flush buffers before exit.