Skip to main content

Module drain

Module drain 

Source
Expand description

Graceful Shutdown with Drain Mode — FR-010

Coordinated shutdown with message preservation:

  • Drain mode: stop accepting new messages, process all in-flight
  • Grace period: configurable timeout, then hard kill
  • Dependency ordering: leaf actors first, parents last
  • Checkpoint on drain: automatically snapshot state before termination

Structs§

ShutdownConfig
Configuration for graceful shutdown.
ShutdownCoordinator
Manages the graceful shutdown process.
ShutdownReport
Report of shutdown results.

Enums§

ShutdownOrdering
Strategy for ordering actor shutdown.
ShutdownPhase
Shutdown phase.