From b29732f30f380057f5610f39c668c697f68fbd31 Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Wed, 24 Jul 2024 19:17:00 +0100 Subject: [PATCH] Release v1.3.0 (#504) --- CHANGES.rst | 11 +++++++++++ aiojobs/__init__.py | 2 +- setup.cfg | 4 ++-- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index a7d32b7..93693aa 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -14,6 +14,17 @@ Changelog .. towncrier release notes start +1.3.0 (2024-07-24) +================== + +- Added ``Scheduler.wait_and_close()`` to allow a grace period for tasks to complete + before closing the scheduler. +- Added ``Scheduler.shield()`` as an alternative to ``asyncio.shield()`` which tracks + the shielded task, thus ensuring shielded tasks are given time to complete on application + shutdown (when used with ``Scheduler.wait_and_close()``). +- Added support for ``async with`` syntax which will automatically call + ``Scheduler.wait_and_close()`` when exiting the context. + 1.2.1 (2023-11-18) ================== diff --git a/aiojobs/__init__.py b/aiojobs/__init__.py index 0a77ae8..43f4ce4 100644 --- a/aiojobs/__init__.py +++ b/aiojobs/__init__.py @@ -11,7 +11,7 @@ from ._job import Job from ._scheduler import ExceptionHandler, Scheduler -__version__ = "1.2.1" +__version__ = "1.3.0" async def create_scheduler( diff --git a/setup.cfg b/setup.cfg index b49184d..4ff33f8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -6,8 +6,8 @@ project_urls = Chat: Gitter = https://gitter.im/aio-libs/Lobby CI: GitHub Actions = https://github.com/aio-libs/aiojobs/actions?query=workflow%%3ACI Coverage: codecov = https://codecov.io/github/aio-libs/aiojobs - Docs: Changelog = https://docs.aiojobs.org/en/stable/changes.html - Docs: RTD = https://docs.aiojobs.org + Docs: Changelog = https://aiojobs.readthedocs.io/en/stable/changes.html + Docs: RTD = https://aiojobs.readthedocs.io/en/stable/ GitHub: issues = https://github.com/aio-libs/aiojobs/issues GitHub: repo = https://github.com/aio-libs/aiojobs description = Job scheduler for managing background tasks (asyncio)