Commit Graph

13 Commits

Author SHA1 Message Date
Vincent Driessen b4c1c85276 Add equality and comparison methods. 2011-11-16 12:45:16 +01:00
Vincent Driessen a5ea45af57 Make the dequeue methods return values consistent.
I merely refactored the internal calls. No external API changes have been made in this commit. In order to make the dequeueing methods consistent, each dequeue method now returns a Job instance, which is just a nice lightweight wrapper around the job tuple.

The Job class makes it easier to pass the method call info around, along with some possible meta information, like the queue the job originated from.

This fixes #7.
2011-11-16 12:44:33 +01:00
Vincent Driessen 1c9fa66bc1 Greatly simplify the setup.
Jobs don't even need to be tagged.  Any function can be put on queues.
2011-11-15 21:18:35 +01:00
Vincent Driessen 62b6b180f3 Also allow args and kwargs to enqueue() calls on Queue. 2011-11-15 09:36:38 +01:00
Vincent Driessen 159eba6df2 Add arg to test case. 2011-11-15 09:36:35 +01:00
Vincent Driessen fc5097ce7a Better test naming. 2011-11-15 09:36:32 +01:00
Vincent Driessen 196a9815d2 Add dequeue method to Queue. 2011-11-15 09:36:29 +01:00
Vincent Driessen b5e0377eb0 Allow jobs to be declared without a default queue.
This makes it impossible to use delay() on them.  Instead, you should
use enqueue().
2011-11-15 09:36:18 +01:00
Vincent Driessen 407f3e8b38 Add ability to put work on alternate queues. 2011-11-15 08:38:12 +01:00
Vincent Driessen 1b8da4a861 Add test for putting work on queues. 2011-11-15 08:13:16 +01:00
Vincent Driessen d721f0708b Refactor the whole Redis connection stuff to be just as easy as in RDB. 2011-11-14 21:32:49 +01:00
Vincent Driessen 05e83c5231 Add a very minor beginning to the test cases. 2011-11-14 14:18:21 +01:00
Vincent Driessen c45e056786 Add some project meta stuff. 2011-11-14 12:11:58 +01:00