<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/rq.git/rq/compat, branch python3.8</title>
<subtitle>github.com: nvie/rq.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/rq.git/'/>
<entry>
<title>Attempt to fix hmset command for Redis &lt; 4.0 (#1260)</title>
<updated>2020-05-26T13:02:44+00:00</updated>
<author>
<name>Selwin Ong</name>
<email>selwin.ong@gmail.com</email>
</author>
<published>2020-05-26T13:02:44+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/rq.git/commit/?id=6a9aa1f81ac625a66edbebbbe900cb33ade8fedd'/>
<id>6a9aa1f81ac625a66edbebbbe900cb33ade8fedd</id>
<content type='text'>
* Attempt to fix hmset command for Redis &lt; 4.0

* Temporarily commented out hset(key, mapping) for backward compatibility reasons.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Attempt to fix hmset command for Redis &lt; 4.0

* Temporarily commented out hset(key, mapping) for backward compatibility reasons.</pre>
</div>
</content>
</entry>
<entry>
<title>Avoid deprecation warnings on redis-py 3.5.0 hmset (#1253)</title>
<updated>2020-05-16T00:35:08+00:00</updated>
<author>
<name>Bo Bayles</name>
<email>bbayles@gmail.com</email>
</author>
<published>2020-05-16T00:35:08+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/rq.git/commit/?id=5859339a51e5f5d902d1d07603f41d95008e1065'/>
<id>5859339a51e5f5d902d1d07603f41d95008e1065</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Job scheduling (#1163)</title>
<updated>2020-01-04T03:14:52+00:00</updated>
<author>
<name>Selwin Ong</name>
<email>selwin.ong@gmail.com</email>
</author>
<published>2020-01-04T03:14:52+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/rq.git/commit/?id=baa0cc268adff31f22e0278e2c76cf26c5a2d14c'/>
<id>baa0cc268adff31f22e0278e2c76cf26c5a2d14c</id>
<content type='text'>
* First RQScheduler prototype

* WIP job scheduling

* Fixed Python 2.7 tests

* Added ScheduledJobRegistry.get_scheduled_time(job)

* WIP on scheduler's threading mechanism

* Fixed test errors

* Changed scheduler.acquire_locks() to instance method

* Added scheduler.prepare_registries()

* Somewhat working implementation of RQ scheduler

* Only call stop_scheduler if there's a scheduler present

* Use OSError rather than ProcessLookupError for PyPy compatibility

* Added `auto_start` argument to scheduler.acquire_locks()

* Make RQScheduler play better with timezone

* Fixed test error

* Added --with-scheduler flag to rq worker CLI

* Fix tests on Python 2.x

* More Python 2 fixes

* Only call `scheduler.start` if worker is run in non burst mode

* Fixed an issue where running worker with scheduler would fail sometimes

* Make `worker.stop_scheduler()` more resilient to errors

* worker.dequeue_job_and_maintain_ttl() should also periodically run maintenance tasks

* Scheduler can now work with worker in both burst and non burst mode

* Fixed scheduler logging message

* Always log scheduler errors when running

* Improve scheduler error logging message

* Removed testing code

* Scheduler should periodically try to acquire locks for other queues it doesn't have

* Added tests for scheduler.should_reacquire_locks

* Added queue.enqueue_in()

* Fixes queue.enqueue_in() in Python 2.7

* First stab at documenting job scheduling

* Remove unused methods

* Remove Python 2.6 logging compatibility code

* Remove more unused imports

* Added convenience methods to access job registries from queue

* Added test for worker.run_maintenance_tasks()

* Simplify worker.queue_names() and worker.queue_keys()

* Updated changelog to mention RQ's new job scheduling mechanism.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* First RQScheduler prototype

* WIP job scheduling

* Fixed Python 2.7 tests

* Added ScheduledJobRegistry.get_scheduled_time(job)

* WIP on scheduler's threading mechanism

* Fixed test errors

* Changed scheduler.acquire_locks() to instance method

* Added scheduler.prepare_registries()

* Somewhat working implementation of RQ scheduler

* Only call stop_scheduler if there's a scheduler present

* Use OSError rather than ProcessLookupError for PyPy compatibility

* Added `auto_start` argument to scheduler.acquire_locks()

* Make RQScheduler play better with timezone

* Fixed test error

* Added --with-scheduler flag to rq worker CLI

* Fix tests on Python 2.x

* More Python 2 fixes

* Only call `scheduler.start` if worker is run in non burst mode

* Fixed an issue where running worker with scheduler would fail sometimes

* Make `worker.stop_scheduler()` more resilient to errors

* worker.dequeue_job_and_maintain_ttl() should also periodically run maintenance tasks

* Scheduler can now work with worker in both burst and non burst mode

* Fixed scheduler logging message

* Always log scheduler errors when running

* Improve scheduler error logging message

* Removed testing code

* Scheduler should periodically try to acquire locks for other queues it doesn't have

* Added tests for scheduler.should_reacquire_locks

* Added queue.enqueue_in()

* Fixes queue.enqueue_in() in Python 2.7

* First stab at documenting job scheduling

* Remove unused methods

* Remove Python 2.6 logging compatibility code

* Remove more unused imports

* Added convenience methods to access job registries from queue

* Added test for worker.run_maintenance_tasks()

* Simplify worker.queue_names() and worker.queue_keys()

* Updated changelog to mention RQ's new job scheduling mechanism.
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor: use try ImportError instead of py-version check (#1034)</title>
<updated>2019-01-29T23:54:00+00:00</updated>
<author>
<name>Chyroc</name>
<email>chyroc@qq.com</email>
</author>
<published>2019-01-29T23:54:00+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/rq.git/commit/?id=7eb95bf405fe034ef416c7b3519bf12c713e97dd'/>
<id>7eb95bf405fe034ef416c7b3519bf12c713e97dd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>modify zadd calls for redis-py 3.0 (#1016)</title>
<updated>2018-12-03T00:28:36+00:00</updated>
<author>
<name>Darshan Rai</name>
<email>darshanjrai@gmail.com</email>
</author>
<published>2018-12-03T00:28:36+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/rq.git/commit/?id=ada2ad03ca959e993a86ce7259d6d96ef91c8bfa'/>
<id>ada2ad03ca959e993a86ce7259d6d96ef91c8bfa</id>
<content type='text'>
* modify zadd calls for redis-py 3.0

redis-py 3.0 changes the zadd interface that accepts a single
mapping argument that is expected to be a dict.
https://github.com/andymccurdy/redis-py#mset-msetnx-and-zadd

* change FailedQueue.push_job_id to always push a str

redis-py 3.0 does not attempt to cast values to str and is left
to the user.

* remove Redis connection patching

Since in redis-py 3.0, Redis == StrictRedis class, we no longer
need to patch _zadd and other methods.
Ref: https://github.com/rq/rq/pull/1016#issuecomment-441010847
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* modify zadd calls for redis-py 3.0

redis-py 3.0 changes the zadd interface that accepts a single
mapping argument that is expected to be a dict.
https://github.com/andymccurdy/redis-py#mset-msetnx-and-zadd

* change FailedQueue.push_job_id to always push a str

redis-py 3.0 does not attempt to cast values to str and is left
to the user.

* remove Redis connection patching

Since in redis-py 3.0, Redis == StrictRedis class, we no longer
need to patch _zadd and other methods.
Ref: https://github.com/rq/rq/pull/1016#issuecomment-441010847
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed #866 - Flak8 errors</title>
<updated>2017-09-08T09:28:10+00:00</updated>
<author>
<name>Theo</name>
<email>theo.despoudis@teckro.com</email>
</author>
<published>2017-09-08T09:28:10+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/rq.git/commit/?id=096c5ad3c20d849220fe9fe84d082f6fb612a09e'/>
<id>096c5ad3c20d849220fe9fe84d082f6fb612a09e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Solve the UnicodeDecodeError while decode literal things. (#817)</title>
<updated>2017-04-19T04:16:24+00:00</updated>
<author>
<name>Peng Liu</name>
<email>myme5261314@gmail.com</email>
</author>
<published>2017-04-19T04:16:24+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/rq.git/commit/?id=b7d4b4ec1b8ec764eaa267222056c15075bc92b6'/>
<id>b7d4b4ec1b8ec764eaa267222056c15075bc92b6</id>
<content type='text'>
* Solve the UnicodeDecodeError while decode literal things.

* Add test case for when worker result is a unicode or str object that other than
pure ascii content.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Solve the UnicodeDecodeError while decode literal things.

* Add test case for when worker result is a unicode or str object that other than
pure ascii content.
</pre>
</div>
</content>
</entry>
<entry>
<title>Moved job.hset_value to connection._hset.</title>
<updated>2015-11-28T05:35:03+00:00</updated>
<author>
<name>Selwin Ong</name>
<email>selwin.ong@gmail.com</email>
</author>
<published>2015-11-28T05:35:03+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/rq.git/commit/?id=364919c7c8af38561c7e3b4bdb0017e4314bd67b'/>
<id>364919c7c8af38561c7e3b4bdb0017e4314bd67b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixes #613</title>
<updated>2015-11-25T12:18:33+00:00</updated>
<author>
<name>Cal Leeming</name>
<email>cal@iops.io</email>
</author>
<published>2015-11-25T12:18:33+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/rq.git/commit/?id=d80f9f8ba0977c85a63c9ae3ba98515627978401'/>
<id>d80f9f8ba0977c85a63c9ae3ba98515627978401</id>
<content type='text'>
This has been discussed in #514, #282 and #88.

Using an explicit type check via `isinstance`, rather than duck typing, is typically considered unpythonic and breaks compatibility with mock objects such as FakeRedis. This patches removes the type check, and instead looks for a common method that should be present on the object as a hint on whether it's compatible or not.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This has been discussed in #514, #282 and #88.

Using an explicit type check via `isinstance`, rather than duck typing, is typically considered unpythonic and breaks compatibility with mock objects such as FakeRedis. This patches removes the type check, and instead looks for a common method that should be present on the object as a hint on whether it's compatible or not.</pre>
</div>
</content>
</entry>
<entry>
<title>Modified patch_connection to allow Redis connection to be easily mocked.</title>
<updated>2015-09-22T11:17:02+00:00</updated>
<author>
<name>Selwin Ong</name>
<email>selwin.ong@gmail.com</email>
</author>
<published>2015-09-22T11:17:02+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/rq.git/commit/?id=0e4112da7a6a18cccbf1069306a6704d407b9b24'/>
<id>0e4112da7a6a18cccbf1069306a6704d407b9b24</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
