hyperlane-plugin-shutdown 22.14.1

A graceful shutdown coordinator plugin for the Hyperlane framework providing OS signal arming (SIGINT/SIGTERM), lock-free in-flight request draining, bounded drain timeouts, LIFO async shutdown callbacks, and ServerControlHook integration.
Documentation

hyperlane-plugin-shutdown

Graceful Shutdown & Connection Drain Plugin

crates.io docs.rs Rust 2024 License: MIT

Workspace Overview · API Docs


Overview

Opt-in OS signal listener and graceful drain coordinator rejecting new traffic while finishing in-flight requests within a bounded timeout.

This crate is a member of the hyperlane unified Rust 2024 workspace. All plugin crates are opt-in and transparent (Status::Continue) when unconfigured.

Responsibilities & Module Layout

  • struct / trait / impl — Drain state machine, signal hooks, and shutdown callbacks

Installation

cargo add hyperlane-plugin-shutdown

Verification

Run crate-scoped formatting, lint, and test gates from the workspace root:

cargo run -p hyperlane-cli -- fmt --check
cargo clippy -p hyperlane-plugin-shutdown --all-features --all-targets -- -D warnings
cargo test -p hyperlane-plugin-shutdown --all-features

Documentation & Governance

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For inquiries, please contact the author at root@devhub.vip.