Sha256: 026055dda49801a8359341f9c14b8dde7a56eacdbaaa515b375bda7842051c00
Contents?: true
Size: 297 Bytes
Versions: 2
Compression:
Stored size: 297 Bytes
Contents
local task = redis.call('LPOP', KEYS[1]) if not task then return nil end local task_key = string.format("%s:active:%s:%s:%s", ARGV[1], ARGV[2], ARGV[3], task) redis.pcall('SADD', KEYS[2], task_key) redis.pcall('SET', task_key, task, "EX", ARGV[4]) return task
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simpleworker-0.1.1 | lib/simpleworker/scripts/reliable_queue.lua |
simpleworker-0.1.0 | lib/simpleworker/scripts/reliable_queue.lua |