271 Commits (83fa0adf15daf718fac416214529072ac297293d)

Author SHA1 Message Date
Vincent Driessen 62ae299114 Fix mathematical meaning of the < operator.
This is used for alphabetical queue ordering.
14 years ago
Vincent Driessen 8678f26df0 Factor out call string. 14 years ago
Vincent Driessen 2ec12f1775 Fix bugje. 14 years ago
Vincent Driessen 1358246238 Better logging output. 14 years ago
Vincent Driessen cc8f05b3c6 Add __str__ to Job. 14 years ago
Vincent Driessen edcc012b2d Document the Queue class. 14 years ago
Vincent Driessen a905961f94 Add some sample scripts. 14 years ago
Vincent Driessen 0ff2984adf Use __slots__, for minimal memory overhead. 14 years ago
Vincent Driessen b5ea5f32fe Variable renamed. 14 years ago
Vincent Driessen 8852859fc4 Improved the __repr__ and __str__ of Queues. 14 years ago
Vincent Driessen b4c1c85276 Add equality and comparison methods. 14 years ago
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.
14 years ago
Vincent Driessen f492a5ae2b Restructure some code.
No functional change, but leave the BLPOP'ing to the Queue, as the
queues know how to pop themselves.
14 years ago
Vincent Driessen 1c9fa66bc1 Greatly simplify the setup.
Jobs don't even need to be tagged.  Any function can be put on queues.
14 years ago
Vincent Driessen 62b6b180f3 Also allow args and kwargs to enqueue() calls on Queue. 14 years ago
Vincent Driessen 196a9815d2 Add dequeue method to Queue. 14 years ago
Vincent Driessen 407f3e8b38 Add ability to put work on alternate queues. 14 years ago
Vincent Driessen 1b8da4a861 Add test for putting work on queues. 14 years ago
Vincent Driessen d721f0708b Refactor the whole Redis connection stuff to be just as easy as in RDB. 14 years ago
Vincent Driessen 518db8c24b Add better connection management.
To start using RQ, push a Redis connection up its stack, like so:

    from rq import push_connection
    push_connection(Redis())
14 years ago
Vincent Driessen f21b2af2b6 Make it an actual PyPI-managable Python package. 14 years ago