mirror of https://github.com/rq/rq.git
Bump version to 1.16.0
This commit is contained in:
parent
0935f47213
commit
6ce1cc63b9
|
@ -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!
|
||||
|
|
|
@ -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.
|
||||
```
|
|
@ -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",
|
||||
|
|
|
@ -1 +1 @@
|
|||
VERSION = '1.15.1'
|
||||
VERSION = '1.16.0'
|
||||
|
|
Loading…
Reference in New Issue