Permalink
Browse files

Fixing an off-by-one

  • Loading branch information...
1 parent 27c7e10 commit 555c318a5baf8065d8a4daca44188cd7642604a2 Dan Lecocq committed Oct 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 failed.lua
View
@@ -43,7 +43,7 @@ if group then
total = redis.call('llen', 'ql:f:' .. group),
jobs = {}
}
- local jids = redis.call('lrange', 'ql:f:' .. group, start, limit)
+ local jids = redis.call('lrange', 'ql:f:' .. group, start, limit - 1)
for index, jid in ipairs(jids) do
local job = redis.call(
'hmget', 'ql:j:' .. jid, 'jid', 'klass', 'state', 'queue', 'worker', 'priority',

0 comments on commit 555c318

Please sign in to comment.