<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/rq.git/tests/test_cli.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>Consolidate job callbacks execution (#1851)</title>
<updated>2023-03-20T23:44:41+00:00</updated>
<author>
<name>Rony Lutsky</name>
<email>3050627+ronlut@users.noreply.github.com</email>
</author>
<published>2023-03-20T23:44:41+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/commit/?id=04722339d7598ff0c52f11c3680ed2dd922e6768'/>
<id>04722339d7598ff0c52f11c3680ed2dd922e6768</id>
<content type='text'>
* consolidate job failure callback execution

* fix

* success callback as well

* merge fix

* create Callback class and change how callbacks serde

* deprecation

* add tests

* string format

* pr fix

* revert serialization changes

* fix timeout typing

* add documentation

* add test

* fix a bug

* fix tests

* move job heartbeat call to worker and make sure there is always a callback timeout

* fix test

* fix test</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* consolidate job failure callback execution

* fix

* success callback as well

* merge fix

* create Callback class and change how callbacks serde

* deprecation

* add tests

* string format

* pr fix

* revert serialization changes

* fix timeout typing

* add documentation

* add test

* fix a bug

* fix tests

* move job heartbeat call to worker and make sure there is always a callback timeout

* fix test

* fix test</pre>
</div>
</content>
</entry>
<entry>
<title>New dequeue strategy (#1806)</title>
<updated>2023-03-04T23:23:00+00:00</updated>
<author>
<name>lowercase00</name>
<email>21188280+lowercase00@users.noreply.github.com</email>
</author>
<published>2023-03-04T23:23:00+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/commit/?id=654649743c8582eb1017e45d12aa315965a901a9'/>
<id>654649743c8582eb1017e45d12aa315965a901a9</id>
<content type='text'>
* New dequeue strategy

This implements a new parameter `dequeue_strategy` that
should replace the `RoundRobinWorker` and `RandomWorker`.
Changes includes: feature, docs, tests, deprecation warning.

* Fix dequeue strategy name

* Black &amp; Fix warning

* feat: tests, warnings, refactor naming

* feat: improve worker check

* fix: revert to str subclass

* fix: dequeue strategy into bootstrap

* org: move DequeueStrategy to worker

* refactor: round robin naming

* fix: naming

* fix: type annotation

* fix: typo

* refactor: remove kwarg from worker's init

* fix: typo

* move `dequeue_strategy` from `bootstrap()` into `work()`</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* New dequeue strategy

This implements a new parameter `dequeue_strategy` that
should replace the `RoundRobinWorker` and `RandomWorker`.
Changes includes: feature, docs, tests, deprecation warning.

* Fix dequeue strategy name

* Black &amp; Fix warning

* feat: tests, warnings, refactor naming

* feat: improve worker check

* fix: revert to str subclass

* fix: dequeue strategy into bootstrap

* org: move DequeueStrategy to worker

* refactor: round robin naming

* fix: naming

* fix: type annotation

* fix: typo

* refactor: remove kwarg from worker's init

* fix: typo

* move `dequeue_strategy` from `bootstrap()` into `work()`</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>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>Main worker should use zadd(xx=True) to update heartbeat. (#1550)</title>
<updated>2021-08-26T12:16:52+00:00</updated>
<author>
<name>Selwin Ong</name>
<email>selwin.ong@gmail.com</email>
</author>
<published>2021-08-26T12:16:52+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/commit/?id=c556106a38505ea7485daec9420c408f720d2961'/>
<id>c556106a38505ea7485daec9420c408f720d2961</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Respect serializer (#1538)</title>
<updated>2021-08-24T00:40:29+00:00</updated>
<author>
<name>Josh Cohen</name>
<email>joshuasteelers@me.com</email>
</author>
<published>2021-08-24T00:40:29+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/commit/?id=b80045d615d539cf4c565c5541694efe13ea648e'/>
<id>b80045d615d539cf4c565c5541694efe13ea648e</id>
<content type='text'>
* Add serializer where missing in code

* Fix cli

* Pass option to command

* Add tests for serializer option

* Merge branch 'master' into respect-serializer
- Update enqueue cli to resp. serializer

* Address @selwin's review</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add serializer where missing in code

* Fix cli

* Pass option to command

* Add tests for serializer option

* Merge branch 'master' into respect-serializer
- Update enqueue cli to resp. serializer

* Address @selwin's review</pre>
</div>
</content>
</entry>
<entry>
<title>Requeueing job should clear job.exc_info (#1543)</title>
<updated>2021-08-21T10:07:29+00:00</updated>
<author>
<name>Selwin Ong</name>
<email>selwin.ong@gmail.com</email>
</author>
<published>2021-08-21T10:07:29+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/commit/?id=f9ddf7dca5b4e0182d86a9d6397502f6e460517b'/>
<id>f9ddf7dca5b4e0182d86a9d6397502f6e460517b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Allows enqueueing by the cli (#1466)</title>
<updated>2021-08-20T06:43:06+00:00</updated>
<author>
<name>rpkak</name>
<email>67059904+rpkak@users.noreply.github.com</email>
</author>
<published>2021-08-20T06:43:06+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/commit/?id=d41f60b9065717d0b69e405d7f7461ed48c54305'/>
<id>d41f60b9065717d0b69e405d7f7461ed48c54305</id>
<content type='text'>
* Allows enqueueing by the cli

#372

* schedule support

* `_` to `-`

* fix flake8

* echo job-id

* Some improvements

 - Description as in python jobs
 - return result
 - quiet mode
 - allows `--boolean` and `--integer`
 - raises errors if not used correctly

* added tests

* add schedule tests

* add retry test

* use click exceptions

* add error test

* add job_func test

* change messages

https://github.com/rq/rq/pull/1466#discussion_r640211128
https://github.com/rq/rq/pull/1466#discussion_r640210850

* Use different format for arguments

View https://github.com/rq/rq/pull/1466#discussion_r650510889

* Add file support

Usage: @filename

* ast.literal_eval support with `#` instead of `:`

* func -&gt; function

Makes error messages more readable

* click Error

* print function string

* add docs

* increase seconds in test

* Update `parse_function_arg`

Add `ParsingMode` enum (https://github.com/rq/rq/pull/1466#discussion_r656676114)
Change error messages (https://github.com/rq/rq/pull/1466#discussion_r656676800, https://github.com/rq/rq/pull/1466#discussion_r656677082)

* `#` to `%`

`#` is the letter for a comment in bash

* Add some tests

(https://github.com/rq/rq/pull/1466#discussion_r656674539, https://github.com/rq/rq/pull/1466#discussion_r656676543)

* Add some tests

* docs: Add some examples

* catch all literal_eval exceptions

There are some edge cases with other exceptions

* remove job_func
(https://github.com/rq/rq/pull/1466#pullrequestreview-690110118)

* edit docs

https://github.com/rq/rq/pull/1466#pullrequestreview-695758691

* format examples

* format examples

`queue.enqueue(path.to.func, args=['abc'])` to `queue.enqueue(path.to.func, 'abc')`

https://github.com/rq/rq/pull/1466#discussion_r673615464

* add examples

https://github.com/rq/rq/pull/1466#discussion_r673658933

* add doc test

https://github.com/rq/rq/pull/1466#discussion_r673659124

* Update index.md

* Update test_cli.py

* Update test_cli.py

* Add version info

Co-authored-by: rpkak &lt;rpkak@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Allows enqueueing by the cli

#372

* schedule support

* `_` to `-`

* fix flake8

* echo job-id

* Some improvements

 - Description as in python jobs
 - return result
 - quiet mode
 - allows `--boolean` and `--integer`
 - raises errors if not used correctly

* added tests

* add schedule tests

* add retry test

* use click exceptions

* add error test

* add job_func test

* change messages

https://github.com/rq/rq/pull/1466#discussion_r640211128
https://github.com/rq/rq/pull/1466#discussion_r640210850

* Use different format for arguments

View https://github.com/rq/rq/pull/1466#discussion_r650510889

* Add file support

Usage: @filename

* ast.literal_eval support with `#` instead of `:`

* func -&gt; function

Makes error messages more readable

* click Error

* print function string

* add docs

* increase seconds in test

* Update `parse_function_arg`

Add `ParsingMode` enum (https://github.com/rq/rq/pull/1466#discussion_r656676114)
Change error messages (https://github.com/rq/rq/pull/1466#discussion_r656676800, https://github.com/rq/rq/pull/1466#discussion_r656677082)

* `#` to `%`

`#` is the letter for a comment in bash

* Add some tests

(https://github.com/rq/rq/pull/1466#discussion_r656674539, https://github.com/rq/rq/pull/1466#discussion_r656676543)

* Add some tests

* docs: Add some examples

* catch all literal_eval exceptions

There are some edge cases with other exceptions

* remove job_func
(https://github.com/rq/rq/pull/1466#pullrequestreview-690110118)

* edit docs

https://github.com/rq/rq/pull/1466#pullrequestreview-695758691

* format examples

* format examples

`queue.enqueue(path.to.func, args=['abc'])` to `queue.enqueue(path.to.func, 'abc')`

https://github.com/rq/rq/pull/1466#discussion_r673615464

* add examples

https://github.com/rq/rq/pull/1466#discussion_r673658933

* add doc test

https://github.com/rq/rq/pull/1466#discussion_r673659124

* Update index.md

* Update test_cli.py

* Update test_cli.py

* Add version info

Co-authored-by: rpkak &lt;rpkak@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Add environment variables for connection (#1472)</title>
<updated>2021-05-30T11:49:28+00:00</updated>
<author>
<name>rpkak</name>
<email>67059904+rpkak@users.noreply.github.com</email>
</author>
<published>2021-05-30T11:49:28+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/commit/?id=73d0210d65fc3fa70463e3f6b6ecd8f3bb679d63'/>
<id>73d0210d65fc3fa70463e3f6b6ecd8f3bb679d63</id>
<content type='text'>
* Add environment variables for connection

Use same args as in config file

#1342

* add test

* add suggestions

https://github.com/rq/rq/pull/1472#discussion_r640205865
https://github.com/rq/rq/pull/1472#discussion_r640206565

* remove unused import</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add environment variables for connection

Use same args as in config file

#1342

* add test

* add suggestions

https://github.com/rq/rq/pull/1472#discussion_r640205865
https://github.com/rq/rq/pull/1472#discussion_r640206565

* remove unused import</pre>
</div>
</content>
</entry>
<entry>
<title>Added --serializer option to cli, finishing off PR #1381 and fix #1357 (#1395)</title>
<updated>2021-01-19T01:19:31+00:00</updated>
<author>
<name>f0cker</name>
<email>f0cker@users.noreply.github.com</email>
</author>
<published>2021-01-19T01:19:31+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/commit/?id=efe703214e1015db53d4942398435a8c597d7a2d'/>
<id>efe703214e1015db53d4942398435a8c597d7a2d</id>
<content type='text'>
* Added --serializer option to cli, finishing off PR #1381 and fix #1357

* Update documentation

* Update documentation

* Modified help message

Co-authored-by: f0cker &lt;dturner@trustwave.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Added --serializer option to cli, finishing off PR #1381 and fix #1357

* Update documentation

* Update documentation

* Modified help message

Co-authored-by: f0cker &lt;dturner@trustwave.com&gt;</pre>
</div>
</content>
</entry>
</feed>
