Skip to main content

Module shutdown

Module shutdown 

Source
Expand description

Graceful shutdown utilities for the atrg server.

Provides a signal-awaiting future suitable for [axum::serve::Serve::with_graceful_shutdown] and a post-shutdown cleanup helper that drains the database pool with a configurable timeout.

Functionsยง

shutdown_cleanup
Run cleanup tasks after the server stops accepting connections.
shutdown_signal
Future that resolves when the process receives a shutdown signal.