HF RL Explorer

Task: Implement Graceful Shutdown of Asyncio Coroutines

Task: Implement Graceful Shutdown of Asyncio Coroutines: a task in Terminal-Lego-15k (Harbor dataset). You need to implement a Python script that properly handles graceful shutdown of asyncio coroutines when receiving a SIGINT (CTRL-C) or SIGTERM signal. Many asyncio applications fail to properly…

The task

You need to implement a Python script that properly handles graceful shutdown of asyncio coroutines when receiving a SIGINT (CTRL-C) or SIGTERM signal. Many asyncio applications fail to properly clean up running coroutines during shutdown, leading to warning messages, resource leaks, or incomplete operations.

Part of PrimeIntellect/Terminal-Lego-15k.