execution-lifecycle-manager

Manage DAG execution lifecycles with graceful shutdown and cancellation propagation.

181|30|Updated Nov 16, 2025
One-click install
npx skills add https://github.com/curiositech/some_claude_skills --skill execution-lifecycle-manager
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: execution-lifecycle-manager
Source: https://github.com/curiositech/some_claude_skills/tree/main/.claude/skills/.archive/execution-lifecycle-manager
Command: npx skills add https://github.com/curiositech/some_claude_skills --skill execution-lifecycle-manager

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides robust mechanisms for managing the lifecycle of running processes, ensuring graceful shutdowns, and preventing resource leaks.

Core Features & Use Cases

  • Lifecycle Management: Start, stop, pause, and resume DAG executions.
  • Graceful Shutdown: Implements a two-phase shutdown (SIGTERM then SIGKILL) for safe process termination.
  • Cancellation Propagation: Uses AbortController to signal cancellation across child processes.
  • Execution Tracking: Maintains a registry of active executions for monitoring and cleanup.
  • Use Case: When a long-running data processing job needs to be stopped due to a system event or user request, this skill ensures it terminates cleanly without leaving orphaned processes or corrupted data.

Quick Start

Use the execution lifecycle manager to gracefully stop the active execution with ID 'dag-12345'.

Frequently Asked Questions about execution-lifecycle-manager

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement graceful shutdown for long-running DAG executions?

Graceful shutdown for DAG executions is implemented using a two-phase termination sequence, sending SIGTERM first for safe cleanup followed by SIGKILL to force termination if the process does not exit.

How does AbortController propagate cancellation across child processes?

AbortController propagates cancellation by signaling active executions, allowing child processes to detect the abort event and terminate cleanly without leaving orphaned resources behind.

What is the best way to track active process lifecycles for monitoring and cleanup?

The best way to track active process lifecycles is maintaining a registry of active executions, enabling monitoring and ensuring all processes are properly cleaned up during system events.

Can I pause and resume process lifecycles during a data processing job?

Yes, you can pause and resume process lifecycles during data processing jobs, allowing you to halt execution temporarily and resume without losing the current state.

Why do I need signal handling for process management in server environments?

Signal handling is needed for process management to integrate with server shutdown events, ensuring API endpoints can safely request stops and prevent corrupted data during termination.

What happens if a process ignores the initial termination request during lifecycle management?

If a process ignores the initial SIGTERM request, lifecycle management escalates to SIGKILL, forcefully terminating the process to guarantee resource release and prevent system hangs.