<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/rq.git/tests/fixtures.py, branch wait-for-processing-unit</title>
<subtitle>github.com: nvie/rq.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/'/>
<entry>
<title>Remove compatibility layer for &lt; 3.5 (#1761)</title>
<updated>2023-01-26T06:04:17+00:00</updated>
<author>
<name>lowercase00</name>
<email>21188280+lowercase00@users.noreply.github.com</email>
</author>
<published>2023-01-26T06:04:17+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/commit/?id=6813e5a2bafda0328fcee8a1c24f084e465accc8'/>
<id>6813e5a2bafda0328fcee8a1c24f084e465accc8</id>
<content type='text'>
* Remove unused code from compat module

* Remove unused dictconfig

* Remove total_ordering compat layer

* Remove compatibility layer

This completely removes the compat module. It moves utilities
functions (`as_text` and `decode_redis_hash`) to the `utils`
module, is eliminates the use of the proxies `text_type` and
`string_types`, using the `str` construct directly.

* Remove compat module

Finishes the cleaning of the compatibility module.
The last function being the `is_python_version` function
which was being used internally.

* Fix old import

* Fix Imports

* Remove Dummy (Force GH Actions)

* Fix Imports

* Organize Imports</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Remove unused code from compat module

* Remove unused dictconfig

* Remove total_ordering compat layer

* Remove compatibility layer

This completely removes the compat module. It moves utilities
functions (`as_text` and `decode_redis_hash`) to the `utils`
module, is eliminates the use of the proxies `text_type` and
`string_types`, using the `str` construct directly.

* Remove compat module

Finishes the cleaning of the compatibility module.
The last function being the `is_python_version` function
which was being used internally.

* Fix old import

* Fix Imports

* Remove Dummy (Force GH Actions)

* Fix Imports

* Organize Imports</pre>
</div>
</content>
</entry>
<entry>
<title>Improve the lint situation (#1688)</title>
<updated>2022-08-06T23:48:00+00:00</updated>
<author>
<name>Yang Yang</name>
<email>y4n9squared@gmail.com</email>
</author>
<published>2022-08-06T23:48:00+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/commit/?id=9db728921d92b3edc8107154e07362b3ed7a8e24'/>
<id>9db728921d92b3edc8107154e07362b3ed7a8e24</id>
<content type='text'>
* Move common flake8 options into config file

Currently --max-line-length being specified in two places. Just use the
existing value in the config file as the source of truth.

Move --count and --statistics to config file as well.

* Fix some lints</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Move common flake8 options into config file

Currently --max-line-length being specified in two places. Just use the
existing value in the config file as the source of truth.

Move --count and --statistics to config file as well.

* Fix some lints</pre>
</div>
</content>
</entry>
<entry>
<title>docs: Fix a few typos (#1679)</title>
<updated>2022-07-31T02:23:06+00:00</updated>
<author>
<name>Tim Gates</name>
<email>tim.gates@iress.com</email>
</author>
<published>2022-07-31T02:23:06+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/commit/?id=d82af1469f66ecfecd557aa7be1c00e419df0123'/>
<id>d82af1469f66ecfecd557aa7be1c00e419df0123</id>
<content type='text'>
There are small typos in:
- docs/docs/exceptions.md
- docs/docs/jobs.md
- rq/queue.py
- tests/fixtures.py
- tests/test_job.py

Fixes:
- Should read `slightly` rather than `slighty`.
- Should read `requeuing` rather than `requeueing`.
- Should read `implementers` rather than `implementors`.
- Should read `definition` rather than `defition`.
- Should read `canceled` rather than `canceld`.

Signed-off-by: Tim Gates &lt;tim.gates@iress.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There are small typos in:
- docs/docs/exceptions.md
- docs/docs/jobs.md
- rq/queue.py
- tests/fixtures.py
- tests/test_job.py

Fixes:
- Should read `slightly` rather than `slighty`.
- Should read `requeuing` rather than `requeueing`.
- Should read `implementers` rather than `implementors`.
- Should read `definition` rather than `defition`.
- Should read `canceled` rather than `canceld`.

Signed-off-by: Tim Gates &lt;tim.gates@iress.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Drop python2-specific syntax (#1674)</title>
<updated>2022-07-24T01:17:07+00:00</updated>
<author>
<name>Hugo</name>
<email>hugo@whynothugo.nl</email>
</author>
<published>2022-07-24T01:17:07+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/commit/?id=d5175c38da3efee26957a0e6d58f00c55387b349'/>
<id>d5175c38da3efee26957a0e6d58f00c55387b349</id>
<content type='text'>
* Drop syntax required only for Python 2

* Drop python2-style super() calls

Co-authored-by: Selwin Ong &lt;selwin.ong@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Drop syntax required only for Python 2

* Drop python2-style super() calls

Co-authored-by: Selwin Ong &lt;selwin.ong@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Success and failure callbacks (#1480)</title>
<updated>2021-06-22T03:30:46+00:00</updated>
<author>
<name>Selwin Ong</name>
<email>selwin.ong@gmail.com</email>
</author>
<published>2021-06-22T03:30:46+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/commit/?id=5590aab4581f9f2f4d7c34a3d09c8eb708aee3c5'/>
<id>5590aab4581f9f2f4d7c34a3d09c8eb708aee3c5</id>
<content type='text'>
* Support enqueueing with on_success_callback

* Got success callback to execute properly

* Added on_failure callback

* Document success and failure callbacks

* More Flake8 fixes

* Mention that options can also be passed in via environment variables

* Increase coverage on test_callbacks.py</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Support enqueueing with on_success_callback

* Got success callback to execute properly

* Added on_failure callback

* Document success and failure callbacks

* More Flake8 fixes

* Mention that options can also be passed in via environment variables

* Increase coverage on test_callbacks.py</pre>
</div>
</content>
</entry>
<entry>
<title>Replace enum function with internal Enum class (#1459)</title>
<updated>2021-05-07T04:10:46+00:00</updated>
<author>
<name>MyrikLD</name>
<email>myrik260138@tut.by</email>
</author>
<published>2021-05-07T04:10:46+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/commit/?id=efb24161abaf749d957a137165e30d59c646fc0a'/>
<id>efb24161abaf749d957a137165e30d59c646fc0a</id>
<content type='text'>
* Removed deprecated (object) inheritance
Add new py38,py39 versions to tox, removed deprecated py27,py34
Replace enum internal function with Enum class

* fix</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Removed deprecated (object) inheritance
Add new py38,py39 versions to tox, removed deprecated py27,py34
Replace enum internal function with Enum class

* fix</pre>
</div>
</content>
</entry>
<entry>
<title>bugfix: Allow using staticmethods as jobs (#1458)</title>
<updated>2021-05-07T04:07:31+00:00</updated>
<author>
<name>pwws</name>
<email>9303779+pwws@users.noreply.github.com</email>
</author>
<published>2021-05-07T04:07:31+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/commit/?id=40b90946a7ea04ee0ebd56c24529453c28baf56a'/>
<id>40b90946a7ea04ee0ebd56c24529453c28baf56a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add runner for asyncio tasks (#1405)</title>
<updated>2021-02-03T00:50:47+00:00</updated>
<author>
<name>MyrikLD</name>
<email>myrik260138@tut.by</email>
</author>
<published>2021-02-03T00:50:47+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/commit/?id=14ca7881e4f0f2c8f70f41395168fcbebb2f2c71'/>
<id>14ca7881e4f0f2c8f70f41395168fcbebb2f2c71</id>
<content type='text'>
* add asyncio runner

* add asyncio runner

* fix for old version

* fix tests</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* add asyncio runner

* add asyncio runner

* fix for old version

* fix tests</pre>
</div>
</content>
</entry>
<entry>
<title>Multidependencies (#1397)</title>
<updated>2021-02-02T11:22:15+00:00</updated>
<author>
<name>skieffer</name>
<email>steve.kieffer@runbox.com</email>
</author>
<published>2021-02-02T11:22:15+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/commit/?id=59d1b40d142ac0d70e07d306f3aea3d7ebae9417'/>
<id>59d1b40d142ac0d70e07d306f3aea3d7ebae9417</id>
<content type='text'>
* Also accept lists and tuples as value of `depends_on`.

* The elements of the lists/tuples may be either Jobs or Job IDs.
* A single Job / Job ID is still accepted as well.

* Represent _all_ job dependencies in `Job.to_dict()`.

We now represent the entire list, instead of just the first element.

* Fix some doctext regarding plurality of dependencies.

* Add unit tests for job dependencies.

* One unit test establishes a pattern for checking execution order as affected by dependencies.

* Another unit test applies this pattern to the new capability to name multiple dependencies.

* Add unit test for new `depends_on` input formats.

Also test that these are properly persisted.

* Repair `Job.restore()`.

Need to convert bytes back to strings when reloading `dependency_ids`.

* Maintain backwards compat. in `Job.to_dict()`.

Keep the old `dependency_id` (singular) key.

* Provide coverage for new test fixture.

* Simplify some code.

Cut some superfluous `as_text()` calls left over from an earlier commit.

* Check for `dependency_id` in `Job.restore()` for backwd. compat.

Also eliminate use of `as_text()` here, in favor of `.decode()`.

* Switch to snake case instead of camel case.

* Eliminate some usages of `as_text()`.

Also cut some `print` statements.

* Cleanup.

* Accept arbitrary iterables for `Job`'s `depends_on` kwarg.

Instead of requiring a list or tuple, we now make use of `ensure_list()`.

* Add test fixtures.

* Provide a system to get two workers working simultaneously, using `multiprocessing`.
* Define a simple job that just says whether its dependencies are met.
* In `rpush`, make an option to record the name of the worker.

* Improve unit tests on execution order with dependencies.

These now actually have two workers going, which makes a more thorough test.

* Add unit test examining `Job.dependencies_are_met()` at execution time.

* Redesign dependency execution order unit tests.

* Simplify assertions.

* Improve doctext and formatting.

* Move fixture tests to new, dedicated module `test_fixtures.py`.

* Use `enqueue` instead of `enqueue_call` in new unit tests.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Also accept lists and tuples as value of `depends_on`.

* The elements of the lists/tuples may be either Jobs or Job IDs.
* A single Job / Job ID is still accepted as well.

* Represent _all_ job dependencies in `Job.to_dict()`.

We now represent the entire list, instead of just the first element.

* Fix some doctext regarding plurality of dependencies.

* Add unit tests for job dependencies.

* One unit test establishes a pattern for checking execution order as affected by dependencies.

* Another unit test applies this pattern to the new capability to name multiple dependencies.

* Add unit test for new `depends_on` input formats.

Also test that these are properly persisted.

* Repair `Job.restore()`.

Need to convert bytes back to strings when reloading `dependency_ids`.

* Maintain backwards compat. in `Job.to_dict()`.

Keep the old `dependency_id` (singular) key.

* Provide coverage for new test fixture.

* Simplify some code.

Cut some superfluous `as_text()` calls left over from an earlier commit.

* Check for `dependency_id` in `Job.restore()` for backwd. compat.

Also eliminate use of `as_text()` here, in favor of `.decode()`.

* Switch to snake case instead of camel case.

* Eliminate some usages of `as_text()`.

Also cut some `print` statements.

* Cleanup.

* Accept arbitrary iterables for `Job`'s `depends_on` kwarg.

Instead of requiring a list or tuple, we now make use of `ensure_list()`.

* Add test fixtures.

* Provide a system to get two workers working simultaneously, using `multiprocessing`.
* Define a simple job that just says whether its dependencies are met.
* In `rpush`, make an option to record the name of the worker.

* Improve unit tests on execution order with dependencies.

These now actually have two workers going, which makes a more thorough test.

* Add unit test examining `Job.dependencies_are_met()` at execution time.

* Redesign dependency execution order unit tests.

* Simplify assertions.

* Improve doctext and formatting.

* Move fixture tests to new, dedicated module `test_fixtures.py`.

* Use `enqueue` instead of `enqueue_call` in new unit tests.</pre>
</div>
</content>
</entry>
<entry>
<title>Added job.worker_name (#1375)</title>
<updated>2020-11-08T14:02:21+00:00</updated>
<author>
<name>Selwin Ong</name>
<email>selwin.ong@gmail.com</email>
</author>
<published>2020-11-08T14:02:21+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/commit/?id=f3e924cdd160cb99f138782b0c4a67620184e0a2'/>
<id>f3e924cdd160cb99f138782b0c4a67620184e0a2</id>
<content type='text'>
* Added job.worker_name

* Fix compatibility with Redis server 3.x

* Document job.worker_name

* Removed some Python 2 compatibility stuff.

* Remove unused codes</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Added job.worker_name

* Fix compatibility with Redis server 3.x

* Document job.worker_name

* Removed some Python 2 compatibility stuff.

* Remove unused codes</pre>
</div>
</content>
</entry>
</feed>
