Sha256: 79e2f3a91e1bb9141ed3436084b084bd462fe6b072d959fde87df29a4252bc03
Contents?: true
Size: 473 Bytes
Versions: 3
Compression:
Stored size: 473 Bytes
Contents
-- Remove job from reliability queue redis.call("LREM", KEYS[2], 0, ARGV[2]) redis.call("ZREM", KEYS[3], ARGV[2]) -- Add job and its fail time (score) to failed sorted set redis.call("ZADD", KEYS[1], ARGV[1], ARGV[2]) -- Remove any jobs that have been given up long enough ago (their score is -- below given value) and make sure the number of jobs is capped redis.call("ZREMRANGEBYSCORE", KEYS[1], "-inf", ARGV[3]) redis.call("ZREMRANGEBYRANK", KEYS[1], 0, -ARGV[4] - 1)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pallets-0.11.0 | lib/pallets/backends/scripts/discard.lua |
pallets-0.10.0 | lib/pallets/backends/scripts/discard.lua |
pallets-0.9.0 | lib/pallets/backends/scripts/discard.lua |