graceful-shutdown
CommunityGraceful shutdown management for in-flight tasks.
Software Engineering#async#graceful-shutdown#server-cleanup#in-flight#signal-handling#buffer-drain#cleanup-callbacks
Authorjrmatherly
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Graceful shutdown ensures long-running processes terminate without data loss by tracking in-flight work, draining buffers, and executing cleanup callbacks as signals arrive.
Core Features & Use Cases
- In-flight tracking and timeout handling to prevent stuck tasks during shutdown.
- Buffer draining and resource cleanup to preserve state and releases resources gracefully.
- Signal handling to intercept termination requests and coordinate orderly shutdown.
Quick Start
Get the shutdown manager instance, register signal handling, and attach cleanup and drain logic. Use trackJob to monitor ongoing work and completeJob when tasks finish, ensuring a safe and predictable shutdown sequence.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: graceful-shutdown Download link: https://github.com/jrmatherly/metorial-workspace/archive/main.zip#graceful-shutdown Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.