Compare commits

4 Commits

Author SHA256 Message Date
97ba6b2d1b Accepting request 1295276 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1295276
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rq?expand=0&rev=16
2025-07-23 14:36:15 +00:00
a7e97adc9c - Update to 2.4.1
* `Worker` will now automatically choose `TimerDeathPenalty` if
    `UnixSignalDeathPenalty` is not available. Thanks @selwin!
  * Introduced `CREATED` `Job` status for jobs that are not enqueued
    not deferred. Thanks @selwin!
  * `Worker` can now import `Job` and `Queue` classes from string.
    Thanks @selwin!
  * Fixed a bug in `Group.cleanup()`. Thanks @dixoncrews-gdl!
  * Logging improvements and code cleanups. Thanks @selwin, @SpecLad!
- from version 2.4.0
  * Added `rq cron` CLI command. Thanks @selwin!
  * Various tests, typing improvements and cleanups. Thanks @SpecLad!
  * When a job is canceled, you can now optionally clean it from
    dependencies using `job.cancel(remove_from_dependencies=True)`.
    Thanks @Marishka17!
  * RQ now requires Python >= 3.9. Thanks @Jankovn and @selwin!
- from version 2.3.3
  * `WorkerPool` now accepts `queue_class` argument. Thanks @amonsh1!
  * Disallow `redis-py=6.0.0`. Thanks @selwin and @terencehonles!
  * Minor typing improvements. Thanks @SpecLad!
- from version 2.3.2
  * Don't log job description when `log_job_description` is set to False.
    Thanks @danilopeixoto!
  * Fixes an issue where `pubsub_thread` may die in the background.
    Thanks @ankush!
- from version 2.3.1
  * Fixes an issue running RQ on Windows. Thanks @selwin!
- from version 2.3.0
  * Added the feature to repeat jobs. Thanks @selwin!
  * Officially support Valkey. Thanks @selwin!

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rq?expand=0&rev=33
2025-07-23 10:53:23 +00:00
f51979f6e3 Accepting request 1222642 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1222642
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rq?expand=0&rev=15
2024-11-08 11:01:06 +00:00
e9c98f838e Accepting request 1222495 from home:nkrapp:branches:devel:languages:python
- Update to 2.0.0

OBS-URL: https://build.opensuse.org/request/show/1222495
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rq?expand=0&rev=31
2024-11-08 06:30:02 +00:00
4 changed files with 125 additions and 10 deletions

View File

@@ -1,3 +1,117 @@
-------------------------------------------------------------------
Wed Jul 23 10:45:51 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 2.4.1
* `Worker` will now automatically choose `TimerDeathPenalty` if
`UnixSignalDeathPenalty` is not available. Thanks @selwin!
* Introduced `CREATED` `Job` status for jobs that are not enqueued
not deferred. Thanks @selwin!
* `Worker` can now import `Job` and `Queue` classes from string.
Thanks @selwin!
* Fixed a bug in `Group.cleanup()`. Thanks @dixoncrews-gdl!
* Logging improvements and code cleanups. Thanks @selwin, @SpecLad!
- from version 2.4.0
* Added `rq cron` CLI command. Thanks @selwin!
* Various tests, typing improvements and cleanups. Thanks @SpecLad!
* When a job is canceled, you can now optionally clean it from
dependencies using `job.cancel(remove_from_dependencies=True)`.
Thanks @Marishka17!
* RQ now requires Python >= 3.9. Thanks @Jankovn and @selwin!
- from version 2.3.3
* `WorkerPool` now accepts `queue_class` argument. Thanks @amonsh1!
* Disallow `redis-py=6.0.0`. Thanks @selwin and @terencehonles!
* Minor typing improvements. Thanks @SpecLad!
- from version 2.3.2
* Don't log job description when `log_job_description` is set to False.
Thanks @danilopeixoto!
* Fixes an issue where `pubsub_thread` may die in the background.
Thanks @ankush!
- from version 2.3.1
* Fixes an issue running RQ on Windows. Thanks @selwin!
- from version 2.3.0
* Added the feature to repeat jobs. Thanks @selwin!
* Officially support Valkey. Thanks @selwin!
* Fixes an issue that prevents jobs from being enqueued across multiple
with using Redis pipeline. Thanks @Nativu5!
- from version 2.2.0
* Added `SpawnWorker` that uses `multiprocessing.spawn` to spawn worker
processes. This makes RQ usable in operating systems without `os.fork()`
like Windows. Thanks @selwin!
* RQ now always use timezone aware timestamps. Thanks @deathtracktor!
* `StartedJobRegistry.cleanup()` now properly creates job results.
Thanks @OlegZv!
* Fixed a bug in worker logging configuration. Thanks @rlaminseok0824!
* Reworked RQ's pubsub thread to not use polling. Thanks @ankush!
* Fixed a bug where `WorkerPool` status is never set to `STARTED`.
Thanks @taleinat!
* `Worker.monitor_work_horse()` now properly handles `InvalidJobOperation`.
Thanks @fancyweb!
* `queue.enqueue_many` now always registers the queue in RQ's queue registry.
Thanks @eswolinsky3241!
* Minor fixes and improvements. Thanks @hongquan, @OlegZv, @victorb, @rparini!
- from version 2.1.0
* `job.id` must not contain `:`. Thanks @sanurielf!
* Various type hint improvements by @terencehonles!
* `job.ended_at` should be set when job is run synchronously.
Thanks @alexprabhat99!
* `Group.all()` now properly handles non existing group.
Thanks @eswolinsky3241!
* Use `ruff` instead of `black` as formatter. Thanks @hongquan!
-------------------------------------------------------------------
Thu Nov 7 15:28:00 UTC 2024 - Nico Krapp <nico.krapp@suse.com>
- Update to 2.0.0
New Features
* Multiple job executions: a job can now have multiple executions
running simultaneously. This will enable future support for long
running scheduled jobs. Thanks @selwin!
* Worker(default_worker_ttl=10) is deprecated in favor of
Worker(worker_ttl=10). Thanks @stv8!
* Added a cleanup parameter to registry.get_job_ids() and
registry.get_job_count(). Thanks @anton-daneyko-ultramarin!
* Added support for AWS Elasticache Serverless Redis.
Thanks @bobbywatson3!
* You can now specify TTL for deferred jobs. Thanks @hberntsen!
* RQ's code base is now typed (mostly). Thanks @terencehonles!
* Other minor fixes and improvements.
Thanks @hongquan, @rbange, @jackkinsella, @terencehonles, @wckao, @sim6!
Breaking Changes
* Dropped support for Redis server < 4
* RoundRobinWorker and RandomWorker are deprecated.
Use --dequeue-strategy <round-robin/random> instead.
* Job.__init__ requires both id and connection to be passed in.
* Job.exists() requires connection argument to be passed in.
* Queue.all() requires connection argument.
* @job decorator now requires connection argument.
* Built in Sentry integration has been removed.
To use Sentry with RQ, please refer to Sentry's docs.
Bug Fixes
* Fixed an issue where abandoned jobs are sometimes not enqueued.
Thanks @Marishka17!
* Fixes an issue where Redis connection does not expose name attribute.
Thanks @wckao!
* job.get_status() will now always return JobStatus enum.
Thanks @indepndnt!
* Queue key should always be created even if jobs are deferred.
Thanks @sim6!
* RQ's pubsub thread will now attempt to reconnect on
Redis connection errors. Thanks @fcharlier!
- Update to 1.16.2
* Fixed a bug that may cause jobs from intermediate queue to be moved
to FailedJobRegistry. Thanks @selwin!
- Update to 1.16.1
* Added worker_pool.get_worker_process() to make WorkerPool easier
to extend. Thanks @selwin!
- Update to 1.16.0
* 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!
-------------------------------------------------------------------
Wed Dec 6 22:25:44 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file
# spec file for package python-rq
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -29,7 +29,7 @@
%{?sle15_python_module_pythons}
Name: python-rq%{psuffix}
Version: 1.15.1
Version: 2.4.1
Release: 0
Summary: Easy Job Queues for Python
License: Apache-2.0
@@ -37,8 +37,9 @@ Group: Development/Languages/Python
URL: https://github.com/rq/rq
Source: https://github.com/rq/rq/archive/v%{version}/%{mod_name}-%{version}.tar.gz
BuildRequires: %{python_module click >= 5.0.0}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module redis >= 3.5.0}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: psmisc
BuildRequires: python-rpm-macros
@@ -46,7 +47,7 @@ BuildRequires: redis
Requires: python-click >= 5.0.0
Requires: python-redis >= 3.5.0
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%if %{with test}
@@ -68,10 +69,10 @@ integrated into web stacks.
%if !%{with test}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/rq
%python_clone -a %{buildroot}%{_bindir}/rqinfo
%python_clone -a %{buildroot}%{_bindir}/rqworker

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2faf04abdf6157e500f29deebab0355f30d5cc4bb4f93751f47bad41a86493f3
size 633531

3
rq-2.4.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1804601135dd5ebdda976d17d21e544cddac34595308e024a21f1bde9e6976d1
size 671888