Sha256: 7d0da7c7156ba0a11223dfdca64da948c0234b30c9e3d422f73ee8465189f28a
Contents?: true
Size: 1.28 KB
Versions: 2
Compression:
Stored size: 1.28 KB
Contents
-------- BEGIN keys --------- local digest = KEYS[1] local queued = KEYS[2] local primed = KEYS[3] local locked = KEYS[4] local run_digest = KEYS[5] local run_queued = KEYS[6] local run_primed = KEYS[7] local run_locked = KEYS[8] local digests = KEYS[9] -------- END keys --------- -------- BEGIN injected arguments -------- local current_time = tonumber(ARGV[1]) local debug_lua = ARGV[2] == "true" local max_history = tonumber(ARGV[3]) local script_name = tostring(ARGV[4]) .. ".lua" local redisversion = tostring(ARGV[5]) --------- END injected arguments --------- -------- BEGIN local functions -------- <%= include_partial "shared/_common.lua" %> ---------- END local functions ---------- -------- BEGIN delete_by_digest.lua -------- local counter = 0 local redis_version = toversion(redisversion) log_debug("BEGIN delete_by_digest:", digest) log_debug("UNLINK", digest, queued, primed, locked, run_digest, run_queued, run_primed, run_locked) counter = redis.call("UNLINK", digest, queued, primed, locked, run_digest, run_queued, run_primed, run_locked) log_debug("ZREM", digests, digest) redis.call("ZREM", digests, digest) log_debug("END delete_by_digest:", digest, "(deleted " .. counter .. " keys)") return counter -------- END delete_by_digest.lua --------
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sidekiq-unique-jobs-8.0.1 | lib/sidekiq_unique_jobs/lua/delete_by_digest.lua |
sidekiq-unique-jobs-8.0.0 | lib/sidekiq_unique_jobs/lua/delete_by_digest.lua |