{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/9"}],"enrichment":{"capability":"aiojobs provides a scheduler for spawning and managing background asyncio tasks with controlled lifecycle, including graceful shutdown and task shielding from cancellation.","skillfed_tags":["asyncio","background-jobs","task-scheduling"],"use_cases":["Run background cleanup or maintenance tasks in web handlers without losing them on shutdown","Spawn multiple long-running coroutines and ensure all complete before application exit","Shield critical tasks from cancellation while maintaining scheduler visibility for graceful shutdown","Integrate background job management into aiohttp.web applications via the built-in aiohttp plugin","Manage task lifecycle in asyncio applications where manual task tracking is error-prone"],"what_it_does":"aiojobs is a task scheduler for asyncio applications that manages the lifecycle of background jobs spawned during runtime. It solves the problem of uncontrolled task cancellation during application shutdown by providing a context manager that tracks all spawned tasks and waits for them to complete before closing. The library includes a Scheduler class that accepts coroutines via spawn(), tracks their execution, and ensures graceful termination.\n\nThe package is typically used in asyncio web applications (especially with aiohttp) to run background work\u2014such as cleanup, notifications, or long-running operations\u2014without losing tasks on shutdown. It also provides a shield() method to protect tasks from cancellation while keeping them tracked, solving a gap in asyncio.shield() that loses visibility of shielded tasks. The single runtime dependency (async-timeout) keeps installation lightweight.","worth_installing":"Yes. aiojobs is actively maintained, production-stable, has no known vulnerabilities, and solves a real problem in asyncio applications\u2014uncontrolled task loss during shutdown. Low install friction and permissive licensing make it a safe, practical choice for any asyncio project needing reliable background task management."},"id":"aiojobs","links":{"html":"https://skillfed.io/packages/aiojobs","md":"https://skillfed.io/packages/aiojobs.md","pypi":"https://pypi.org/project/aiojobs/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-04-05","license_spdx":null,"license_treatment":"permissive","name":"aiojobs","python_support":"supports_current","summary":"Job scheduler for managing background tasks (asyncio)"},"popularity":{"monthly_downloads":354079,"position":7298,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.4.0"}
