Change-Id: I650fa1d2eea9817c47f885d3be0465f9108fad22
local attempts = redis.call('hGet',kAttempts,id)
if attempts < ARGV[3] then
-- Claim expired and retries left: re-enqueue the job
local attempts = redis.call('hGet',kAttempts,id)
if attempts < ARGV[3] then
-- Claim expired and retries left: re-enqueue the job
- redis.call('lPush',kUclaimed,id)
+ redis.call('lPush',kUnclaimed,id)
redis.call('hIncrBy',kAttempts,id,1)
released = released + 1
else
redis.call('hIncrBy',kAttempts,id,1)
released = released + 1
else