coupa/resque-round-robin — pull request #2 by veenstra (2012-11-05 06:28:31+00:00)
Title: Fair round-robin scheduling of jobs.

This fixes a bug with picking jobs fairly when there are some empty queues. For
example, suppose queues A, and B are empty, while C and D each have 4 jobs.
Before this change, the scheduler would start searching at queue A and
eventually pick a job from C. Then it would start searching from B and pick
another job from C. Then it would start searching at C and pick a job from C.
Finally it would start searching from D and pick a job from D. So the jobs
would be executed in the order: C, C, C, D, C, D, D, D. But we would like
fair scheduling where the jobs alternate between C and D. To fix this bug,
the code starts the next search from the next queue that follows the one from
which we took the last job.

Also bump the version number to 0.1.4.