From 6ce1cc63b97b8ab017f18276d903de67cf45b65c Mon Sep 17 00:00:00 2001 From: Selwin Ong Date: Sat, 24 Feb 2024 10:10:21 +0700 Subject: [PATCH] Bump version to 1.16.0 --- CHANGES.md | 7 +++++++ docs/docs/results.md | 3 ++- pyproject.toml | 1 + rq/version.py | 2 +- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 0fe4198f..c1b5ec30 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,10 @@ +### RQ 1.16 (2024-02-24) +* Added a way for jobs to wait for latest result `job.latest_result(timeout=60)`. Thanks @ajnisbet! +* Fixed an issue where `stopped_callback` is not respected when job is enqueued via `enqueue_many()`. Thanks @eswolinsky3241! +* `worker-pool` no longer ignores `--quiet`. Thanks @Mindiell! +* Added compatibility with AWS Serverless Redis. Thanks @peter-gy! +* `worker-pool` now starts with scheduler. Thanks @chromium7! + ### RQ 1.15.1 (2023-06-20) * Fixed a bug that may cause a crash when cleaning intermediate queue. Thanks @selwin! * Fixed a bug that may cause canceled jobs to still run dependent jobs. Thanks @fredsod! diff --git a/docs/docs/results.md b/docs/docs/results.md index 2a2c6d46..80741fe8 100644 --- a/docs/docs/results.md +++ b/docs/docs/results.md @@ -157,9 +157,10 @@ for result in job.results(): print(result.created_at, result.type) ``` +_New in version 1.16.0._ To block until a result arrives, you can pass a timeout in seconds to `job.latest_result()`. If any results already exist, the latest result is returned immediately. If the timeout is reached without a result arriving, a `None` object is returned. ```python job = queue.enqueue(sleep_for_10_seconds) -result = job.fetch_latest(timeout=60) # Will hang for about 10 seconds. +result = job.latest_result(timeout=60) # Will hang for about 10 seconds. ``` \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 7bb68c0f..30509d67 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,6 +34,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Internet", "Topic :: Scientific/Engineering", "Topic :: Software Development :: Libraries :: Python Modules", diff --git a/rq/version.py b/rq/version.py index 3e4fa760..a51469e2 100644 --- a/rq/version.py +++ b/rq/version.py @@ -1 +1 @@ -VERSION = '1.15.1' +VERSION = '1.16.0'