Commit Graph

14 Commits

Author SHA1 Message Date
Vincent Driessen f07d28db86 Organize test fixtures into a separate file. 2012-02-15 21:55:06 +01:00
Vincent Driessen 5717a0ba15 Rename Job.for_call() -> Job.create().
This fixes #34.
2012-02-15 17:01:10 +01:00
Vincent Driessen 7e0b843d06 Implement requeue() method on FailedQueue. 2012-02-15 16:59:27 +01:00
Vincent Driessen 8e85c7eee3 Put Job directly in the top-level `rq` module. 2012-02-15 15:54:02 +01:00
Vincent Driessen 53f55ba986 Flake8 style fixes in the test suite. 2012-02-13 17:32:16 +01:00
Vincent Driessen 7bda1ca969 Encapsulate the result property (it should not directly be set). 2012-02-13 16:43:27 +01:00
Vincent Driessen 8da204f74a Always use cPickle, never 'regular' pickle.
This fixes #18.
2012-02-13 13:59:24 +01:00
Vincent Driessen 9318825429 Abstract away from the concrete pickle implementation.
Choose cPickle, if available, for best performance.
2012-02-13 13:59:24 +01:00
Vincent Driessen 7c903e45ef Simplify the persistence of jobs.
Fixes #23 and #24.
2012-02-10 17:18:51 +01:00
Vincent Driessen b1650cb9b9 CHECKPOINT: Second part of the big refactoring.
Jobs are now stored in separate keys, and only job IDs are put on Redis
queues.  Much of the code has been hit by this change, but it is for the
good.

No really.
2012-02-08 14:18:17 +01:00
Vincent Driessen 65105b44c3 CHECKPOINT: Initial part of the big refactor. 2012-02-08 00:40:43 +01:00
Vincent Driessen 0be1cb6ac0 Change the way jobs are pickled.
There is no job tuple anymore, but instead Jobs are picklable by
themselves natively.  Furthermore, I've added a way to annotate Jobs
with created_at and enqueued_at timestamps, to drive any future Job
performance stats.  (And to enable requeueing, while keeping hold of the
queue that the Job originated from.)

This fixes #17.
2012-01-30 16:52:28 +01:00
Vincent Driessen 0503eb2829 Clarified responsibility of the Job class.
The Job itself has nothing to do with queueing and dequeueing, so the
DequeueError wasn't appropriate here, either.
2012-01-28 09:00:02 +01:00
Vincent Driessen 1f64157c38 Broke down tests into multiple files. 2012-01-28 07:58:40 +01:00