local task = redis.call('LPOP', KEYS) if not task then
return nil
end
local task_key = string.format(ā%s:active:%s:%s:%sā, ARGV, ARGV, ARGV, task) redis.pcall('SADD', KEYS, task_key) redis.pcall('SET',
task_key, task, "EX", ARGV[4])
return task