SHA256
14
0
forked from pool/python-rq

Accepting request 1040398 from home:ecsos

- Update to 1.11.1
  - queue.enqueue_many() now supports on_success and on on_failure
    arguments.
  - You can now pass enqueue_at_front to Dependency() objects to
    put dependent jobs at the front when they are enqueued.
  - Fixed a bug where workers may wrongly acquire scheduler locks.
  - Jobs should not be enqueued if any one of it's dependencies is
    canceled.
  - Fixed a bug when handling jobs that have been stopped.
  - Fixed a bug in handling Redis connections that don't allow
    SETNAME command.
- Update to 1.11.0
  - This will be the last RQ version that supports Python 3.5.
  - Allow jobs to be enqueued even when their dependencies fail via
    Dependency(allow_failure=True).
  - When stopped jobs are deleted, they should also be removed from
    FailedJobRegistry.
  - job.requeue() now supports at_front() argument.
  - Added ssl support for sentinel connections.
  - SimpleWorker now works better on Windows.
  - Added on_failure and on_success arguments to @job decorator.
  - Fixed a bug in dependency handling.
  - Minor fixes and optimizations
- Remove https://github.com/rq/rq/issues/1646 items in spec file.
- Remove -k 'not (test_failure_capture or test_worker)' from pytest.

OBS-URL: https://build.opensuse.org/request/show/1040398
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rq?expand=0&rev=19
This commit is contained in:
2022-12-05 17:52:16 +00:00
committed by Git OBS Bridge
parent e035807fa7
commit b8e8b0e2c8
4 changed files with 35 additions and 13 deletions

View File

@@ -1,3 +1,32 @@
-------------------------------------------------------------------
Mon Dec 5 15:35:13 UTC 2022 - ecsos <ecsos@opensuse.org>
- Update to 1.11.1
- queue.enqueue_many() now supports on_success and on on_failure
arguments.
- You can now pass enqueue_at_front to Dependency() objects to
put dependent jobs at the front when they are enqueued.
- Fixed a bug where workers may wrongly acquire scheduler locks.
- Jobs should not be enqueued if any one of it's dependencies is
canceled.
- Fixed a bug when handling jobs that have been stopped.
- Fixed a bug in handling Redis connections that don't allow
SETNAME command.
- Update to 1.11.0
- This will be the last RQ version that supports Python 3.5.
- Allow jobs to be enqueued even when their dependencies fail via
Dependency(allow_failure=True).
- When stopped jobs are deleted, they should also be removed from
FailedJobRegistry.
- job.requeue() now supports at_front() argument.
- Added ssl support for sentinel connections.
- SimpleWorker now works better on Windows.
- Added on_failure and on_success arguments to @job decorator.
- Fixed a bug in dependency handling.
- Minor fixes and optimizations
- Remove https://github.com/rq/rq/issues/1646 items in spec file.
- Remove -k 'not (test_failure_capture or test_worker)' from pytest.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Apr 14 08:52:04 UTC 2022 - pgajdos@suse.com Thu Apr 14 08:52:04 UTC 2022 - pgajdos@suse.com

View File

@@ -21,7 +21,7 @@
%define skip_python2 1 %define skip_python2 1
Name: python-rq Name: python-rq
Version: 1.10.1 Version: 1.11.1
Release: 0 Release: 0
Summary: Easy Job Queues for Python Summary: Easy Job Queues for Python
License: Apache-2.0 License: Apache-2.0
@@ -32,6 +32,7 @@ BuildRequires: %{python_module click >= 5.0.0}
BuildRequires: %{python_module psutil} BuildRequires: %{python_module psutil}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module redis >= 3.5.0} BuildRequires: %{python_module redis >= 3.5.0}
BuildRequires: %{python_module sentry-sdk}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: psmisc BuildRequires: psmisc
@@ -62,17 +63,9 @@ integrated into web stacks.
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
# https://github.com/rq/rq/issues/1646
sed -i -e 's:import mock:from unittest import mock:' \
-e 's:from mock.mock:from unittest.mock:' \
-e 's:from mock import:from unittest.mock import:' \
tests/test_*.py
# test_failure_capture - circular dependency on sentry-sdk
# test_worker - update-alternatives: only rqworker-%{python_version} is
# available, skip test for simplicity
export PATH="$PATH:%{buildroot}%{_bindir}" export PATH="$PATH:%{buildroot}%{_bindir}"
%{_sbindir}/redis-server --port 6379 & %{_sbindir}/redis-server --port 6379 &
%pytest -k 'not (test_failure_capture or test_worker)' %pytest
killall redis-server killall redis-server
%post %post

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:197482e174b862d2068e1ec4164259159ada9d3f93d9e995bf385680d55b9e71
size 599678

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

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