<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/rq.git/rq/__init__.py, branch python3.8</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>RQ v1.0! (#1059)</title>
<updated>2019-03-30T02:13:56+00:00</updated>
<author>
<name>Selwin Ong</name>
<email>selwin.ong@gmail.com</email>
</author>
<published>2019-03-30T02:13:56+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/commit/?id=c4cbb3af2ff7baad1cf4a2319b72324f966df77b'/>
<id>c4cbb3af2ff7baad1cf4a2319b72324f966df77b</id>
<content type='text'>
* Added FailedJobRegistry.

* Added job.failure_ttl.

* queue.enqueue() now supports failure_ttl

* Added registry.get_queue().

* FailedJobRegistry.add() now assigns DEFAULT_FAILURE_TTL.

* StartedJobRegistry.cleanup() now moves expired jobs to FailedJobRegistry.

* Failed jobs are now added to FailedJobRegistry.

* Added FailedJobRegistry.requeue()

* Document the new `FailedJobRegistry` and changes in custom exception handler behavior.

* Added worker.disable_default_exception_handler.

* Document --disable-default-exception-handler option.

* Deleted worker.failed_queue.

* Deleted "move_to_failed_queue" exception handler.

* StartedJobRegistry should no longer move jobs to FailedQueue.

* Deleted requeue_job

* Fixed test error.

* Make requeue cli command work with FailedJobRegistry

* Added .pytest_cache to gitignore.

* Custom exception handlers are no longer run in reverse

* Restored requeue_job function

* Removed get_failed_queue

* Deleted FailedQueue

* Updated changelog.

* Document `failure_ttl`

* Updated docs.

* Remove job.status

* Fixed typo in test_registry.py

* Replaced _pipeline() with pipeline()

* FailedJobRegistry no longer fails on redis-py&gt;=3

* Fixes test_clean_registries

* Worker names are now randomized

* Added a note about random worker names in CHANGES.md

* Worker will now stop working when encountering an unhandled exception.

* Worker should reraise SystemExit on cold shutdowns

* Added anchor.js to docs

* Support for Sentry-SDK (#1045)

* Updated RQ to support sentry-sdk

* Document Sentry integration

* Install sentry-sdk before running tests

* Improved rq info CLI command to be more efficient when displaying lar… (#1046)

* Improved rq info CLI command to be more efficient when displaying large number of workers

* Fixed an rq info --by-queue bug

* Fixed worker.total_working_time bug (#1047)

* queue.enqueue() no longer accepts `timeout` argument (#1055)

* Clean worker registry (#1056)

* queue.enqueue() no longer accepts `timeout` argument

* Added clean_worker_registry()

* Show worker hostname and PID on cli (#1058)

* Show worker hostname and PID on cli

* Improve test coverage

* Remove Redis version check when SSL is used

* Bump version to 1.0

* Removed pytest_cache/README.md

* Changed worker logging to use exc_info=True

* Removed unused queue.dequeue()

* Fixed typo in CHANGES.md

* setup_loghandlers() should always call logger.setLevel() if specified
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Added FailedJobRegistry.

* Added job.failure_ttl.

* queue.enqueue() now supports failure_ttl

* Added registry.get_queue().

* FailedJobRegistry.add() now assigns DEFAULT_FAILURE_TTL.

* StartedJobRegistry.cleanup() now moves expired jobs to FailedJobRegistry.

* Failed jobs are now added to FailedJobRegistry.

* Added FailedJobRegistry.requeue()

* Document the new `FailedJobRegistry` and changes in custom exception handler behavior.

* Added worker.disable_default_exception_handler.

* Document --disable-default-exception-handler option.

* Deleted worker.failed_queue.

* Deleted "move_to_failed_queue" exception handler.

* StartedJobRegistry should no longer move jobs to FailedQueue.

* Deleted requeue_job

* Fixed test error.

* Make requeue cli command work with FailedJobRegistry

* Added .pytest_cache to gitignore.

* Custom exception handlers are no longer run in reverse

* Restored requeue_job function

* Removed get_failed_queue

* Deleted FailedQueue

* Updated changelog.

* Document `failure_ttl`

* Updated docs.

* Remove job.status

* Fixed typo in test_registry.py

* Replaced _pipeline() with pipeline()

* FailedJobRegistry no longer fails on redis-py&gt;=3

* Fixes test_clean_registries

* Worker names are now randomized

* Added a note about random worker names in CHANGES.md

* Worker will now stop working when encountering an unhandled exception.

* Worker should reraise SystemExit on cold shutdowns

* Added anchor.js to docs

* Support for Sentry-SDK (#1045)

* Updated RQ to support sentry-sdk

* Document Sentry integration

* Install sentry-sdk before running tests

* Improved rq info CLI command to be more efficient when displaying lar… (#1046)

* Improved rq info CLI command to be more efficient when displaying large number of workers

* Fixed an rq info --by-queue bug

* Fixed worker.total_working_time bug (#1047)

* queue.enqueue() no longer accepts `timeout` argument (#1055)

* Clean worker registry (#1056)

* queue.enqueue() no longer accepts `timeout` argument

* Added clean_worker_registry()

* Show worker hostname and PID on cli (#1058)

* Show worker hostname and PID on cli

* Improve test coverage

* Remove Redis version check when SSL is used

* Bump version to 1.0

* Removed pytest_cache/README.md

* Changed worker logging to use exc_info=True

* Removed unused queue.dequeue()

* Fixed typo in CHANGES.md

* setup_loghandlers() should always call logger.setLevel() if specified
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix PEP8 complaints.</title>
<updated>2014-09-08T18:29:24+00:00</updated>
<author>
<name>Vincent Driessen</name>
<email>vincent@3rdcloud.com</email>
</author>
<published>2014-09-08T18:29:24+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/commit/?id=4b7c59d68dc52ea7f35ac96448f8e9a93515e5e3'/>
<id>4b7c59d68dc52ea7f35ac96448f8e9a93515e5e3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Renamed to SimpleWorker</title>
<updated>2014-09-08T10:43:41+00:00</updated>
<author>
<name>foxx</name>
<email>cal@iops.io</email>
</author>
<published>2014-09-08T10:43:41+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/commit/?id=52c3ad0fbf4c4d74b1433c523690531af4b02493'/>
<id>52c3ad0fbf4c4d74b1433c523690531af4b02493</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use class for test worker, and performs PID check in unit tests, #412</title>
<updated>2014-09-08T10:37:14+00:00</updated>
<author>
<name>foxx</name>
<email>cal@iops.io</email>
</author>
<published>2014-09-08T10:31:05+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/commit/?id=16ee71f26de5b0992625442fa59b72c0da928561'/>
<id>16ee71f26de5b0992625442fa59b72c0da928561</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Enable the most modern Python syntax.</title>
<updated>2014-05-05T08:50:02+00:00</updated>
<author>
<name>Vincent Driessen</name>
<email>vincent@3rdcloud.com</email>
</author>
<published>2014-05-05T08:49:29+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/commit/?id=38ec259b6e436d7868af8e99d55305340d5375ce'/>
<id>38ec259b6e436d7868af8e99d55305340d5375ce</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Implement the get_current_job() function.</title>
<updated>2012-09-02T20:38:46+00:00</updated>
<author>
<name>Vincent Driessen</name>
<email>vincent@3rdcloud.com</email>
</author>
<published>2012-09-02T20:34:11+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/commit/?id=372de4b45a080f9e4a58dfb6d1f0512d92d736b6'/>
<id>372de4b45a080f9e4a58dfb6d1f0512d92d736b6</id>
<content type='text'>
This fixes #125.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes #125.
</pre>
</div>
</content>
</entry>
<entry>
<title>Reflect new API in the RQ scripts.</title>
<updated>2012-03-23T14:15:29+00:00</updated>
<author>
<name>Vincent Driessen</name>
<email>vincent@3rdcloud.com</email>
</author>
<published>2012-03-23T14:15:29+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/commit/?id=a7c229ddb143ed592d34048498011cbb382d76b5'/>
<id>a7c229ddb143ed592d34048498011cbb382d76b5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>New connection management.</title>
<updated>2012-03-23T14:10:49+00:00</updated>
<author>
<name>Vincent Driessen</name>
<email>vincent@3rdcloud.com</email>
</author>
<published>2012-03-23T13:33:49+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/commit/?id=2982486448412b336f6712defde5e73cf489f3bc'/>
<id>2982486448412b336f6712defde5e73cf489f3bc</id>
<content type='text'>
Connections can now be set explicitly on Queues, Workers, and Jobs.
Jobs that are implicitly created by Queue or Worker API calls now
inherit the connection of their creator's.

For all RQ object instances that are created now holds that the
"current" connection is used if none is passed in explicitly.  The
"current" connection is thus hold on to at creation time and won't be
changed for the lifetime of the object.

Effectively, this means that, given a default Redis connection, say you
create a queue Q1, then push another Redis connection onto the
connection stack, then create Q2. In that case, Q1 means a queue on the
first connection and Q2 on the second connection.

This is way more clear than it used to be.

Also, I've removed the `use_redis()` call, which was named ugly.
Instead, some new alternatives for connection management now exist.

You can push/pop connections now:

    &gt;&gt;&gt; my_conn = Redis()
    &gt;&gt;&gt; push_connection(my_conn)
    &gt;&gt;&gt; q = Queue()
    &gt;&gt;&gt; q.connection == my_conn
    True
    &gt;&gt;&gt; pop_connection() == my_conn

Also, you can stack them syntactically:

    &gt;&gt;&gt; conn1 = Redis()
    &gt;&gt;&gt; conn2 = Redis('example.org', 1234)
    &gt;&gt;&gt; with Connection(conn1):
    ...     q = Queue()
    ...     with Connection(conn2):
    ...         q2 = Queue()
    ...     q3 = Queue()
    &gt;&gt;&gt; q.connection == conn1
    True
    &gt;&gt;&gt; q2.connection == conn2
    True
    &gt;&gt;&gt; q3.connection == conn1
    True

Or, if you only require a single connection to Redis (for most uses):

    &gt;&gt;&gt; use_connection(Redis())
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Connections can now be set explicitly on Queues, Workers, and Jobs.
Jobs that are implicitly created by Queue or Worker API calls now
inherit the connection of their creator's.

For all RQ object instances that are created now holds that the
"current" connection is used if none is passed in explicitly.  The
"current" connection is thus hold on to at creation time and won't be
changed for the lifetime of the object.

Effectively, this means that, given a default Redis connection, say you
create a queue Q1, then push another Redis connection onto the
connection stack, then create Q2. In that case, Q1 means a queue on the
first connection and Q2 on the second connection.

This is way more clear than it used to be.

Also, I've removed the `use_redis()` call, which was named ugly.
Instead, some new alternatives for connection management now exist.

You can push/pop connections now:

    &gt;&gt;&gt; my_conn = Redis()
    &gt;&gt;&gt; push_connection(my_conn)
    &gt;&gt;&gt; q = Queue()
    &gt;&gt;&gt; q.connection == my_conn
    True
    &gt;&gt;&gt; pop_connection() == my_conn

Also, you can stack them syntactically:

    &gt;&gt;&gt; conn1 = Redis()
    &gt;&gt;&gt; conn2 = Redis('example.org', 1234)
    &gt;&gt;&gt; with Connection(conn1):
    ...     q = Queue()
    ...     with Connection(conn2):
    ...         q2 = Queue()
    ...     q3 = Queue()
    &gt;&gt;&gt; q.connection == conn1
    True
    &gt;&gt;&gt; q2.connection == conn2
    True
    &gt;&gt;&gt; q3.connection == conn1
    True

Or, if you only require a single connection to Redis (for most uses):

    &gt;&gt;&gt; use_connection(Redis())
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't expose the FailedQueue class at the top-level.</title>
<updated>2012-03-21T14:25:03+00:00</updated>
<author>
<name>Vincent Driessen</name>
<email>vincent@3rdcloud.com</email>
</author>
<published>2012-03-21T14:24:32+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/commit/?id=c68494904594e8794d3bae9e63f8c2fcd44102c3'/>
<id>c68494904594e8794d3bae9e63f8c2fcd44102c3</id>
<content type='text'>
This fixes #36.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes #36.
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't expose the Job class at the top-level.</title>
<updated>2012-03-21T14:05:58+00:00</updated>
<author>
<name>Vincent Driessen</name>
<email>vincent@3rdcloud.com</email>
</author>
<published>2012-02-24T11:46:09+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/rq.git/commit/?id=98ea29b15af6a48e26efd837e60ee2b4697e0532'/>
<id>98ea29b15af6a48e26efd837e60ee2b4697e0532</id>
<content type='text'>
This partially fixes #37.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This partially fixes #37.
</pre>
</div>
</content>
</entry>
</feed>
