Sha256: 59b7fb657caf430d7fb2b91e6a1755c0b452bbbf86531428f302a54fcd5028ea

Contents?: true

Size: 374 Bytes

Versions: 7

Compression:

Stored size: 374 Bytes

Contents

-- Remove job from reliability queue
redis.call("LREM", KEYS[2], 0, ARGV[3])
redis.call("ZREM", KEYS[3], ARGV[3])

-- 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)
redis.call("ZREMRANGEBYSCORE", KEYS[1], "-inf", ARGV[4])

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pallets-0.8.0 lib/pallets/backends/scripts/give_up.lua
pallets-0.7.0 lib/pallets/backends/scripts/give_up.lua
pallets-0.6.0 lib/pallets/backends/scripts/give_up.lua
pallets-0.5.1 lib/pallets/backends/scripts/give_up.lua
pallets-0.5.0 lib/pallets/backends/scripts/give_up.lua
pallets-0.4.0 lib/pallets/backends/scripts/give_up.lua
pallets-0.3.0 lib/pallets/backends/scripts/give_up.lua