– AUTOGENERATED FILE DO NOT EDIT DIRECTLY local zset_key = KEYS local processed_key = KEYS local worker_queue_key = KEYS
local current_time = ARGV local timeout = ARGV
local lost_tests = redis.call('zrangebyscore', zset_key, 0, current_time - timeout) for _, test in ipairs(lost_tests) do
if redis.call('sismember', processed_key, test) == 0 then redis.call('zadd', zset_key, current_time, test) redis.call('lpush', worker_queue_key, test) return test end
end
return nil