Module shutdown

Module shutdown 

Source
Expand description

SIGTERM-driven graceful shutdown primitives shared by all services

Structs§

ShutdownFanout
Fans a shutdown future out to N consumers via a watch channel.

Functions§

serve_axum_with_graceful_shutdown
Serves an Axum application, draining in-flight requests when shutdown fires.
wait_for_sigterm
Completes when SIGTERM is received. On non-unix targets, never completes (preserves current behavior; production deploys are Linux/ECS).