From d3b07fba4720c252da26e0e773a5549ce3aed46d Mon Sep 17 00:00:00 2001 From: Selwin Ong Date: Sun, 29 Nov 2020 16:41:56 +0700 Subject: [PATCH] Bump version to 1.7.0 --- CHANGES.md | 6 ++++++ docs/docs/workers.md | 2 +- rq/version.py | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index e2184e4..1fd3ddc 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,9 @@ +### RQ 1.7.0 (2020-11-29) +* Added `job.worker_name` attribute that tells you which worker is executing a job. Thanks @selwin! +* Added `send_stop_job_command()` that tells a worker to stop executing a job. Thanks @selwin! +* Added `JSONSerializer` as an alternative to the default `pickle` based serializer. Thanks @JackBoreczky! +* Fixes `RQScheduler` running on Redis with `ssl=True`. Thanks @BobReid! + ### RQ 1.6.1 (2020-11-08) * Worker now properly releases scheduler lock when run in burst mode. Thanks @selwin! diff --git a/docs/docs/workers.md b/docs/docs/workers.md index 9d2e43a..9d2f134 100644 --- a/docs/docs/workers.md +++ b/docs/docs/workers.md @@ -415,7 +415,7 @@ for worker in workers: ``` -### Stopping a Currently Executing Job +### Stopping a Job _New in version 1.7.0._ You can use `send_stop_job_command()` to tell a worker to immediately stop a currently executing job. A job that's stopped will be sent to [FailedJobRegistry](https://python-rq.org/docs/results/#dealing-with-exceptions). diff --git a/rq/version.py b/rq/version.py index 352230d..4bf60ac 100644 --- a/rq/version.py +++ b/rq/version.py @@ -2,4 +2,4 @@ from __future__ import (absolute_import, division, print_function, unicode_literals) -VERSION = '1.6.1' +VERSION = '1.7.0'