cancel-async-tasks by benchflow-ai

cancel-async-tasks

benchflow-ai

9382423 months ago

Guidance for implementing proper asyncio task cancellation with signal handling in Python. This skill applies when implementing concurrent task runners that need graceful shutdown, handling KeyboardInterrupt/SIGINT in asyncio contexts, or managing task cleanup when using semaphores for concurrency limiting. Use when tasks involve asyncio.gather, CancelledError handling, or cleanup of tasks that haven't started execution.

>_
Quick Install
npxskills add benchflow-ai/skillsbench--skill cancel-async-tasks
Instructions

No instructions available