HF RL Explorer

Feature Request: Graceful shutdown and shielded task support in aiojobs Scheduler

Feature Request: Graceful shutdown and shielded task support in aiojobs Scheduler: a task in LegoFlow-SWE (Harbor dataset). Additionally, when using asyncio.shield() with spawned jobs, the inner shielded task is not tracked by the scheduler. During shutdown the scheduler’s close() does not wait…

The task

Additionally, when using `asyncio.shield()` with spawned jobs, the inner shielded task is not tracked by the scheduler. During shutdown the scheduler’s `close()` does not wait for such tasks, so they are cancelled prematurely. A typical pattern where a developer wants to protect a coroutine from cancellation while…

Part of Lego-X/LegoFlow-SWE.