Sha256: 321df39be3fb0ef7c4e94bd44fecda9f3afa61acf0bab875831e3576032392d9
Contents?: true
Size: 398 Bytes
Versions: 6
Compression:
Stored size: 398 Bytes
Contents
module AtomicSidekiq module AtomicOperation class Requeue < Base def perform(queue:, job:) redis do |conn| requeue(conn, queue: queue, job: job) end end private def requeue(conn, queue:, job:) conn.multi do conn.rpush(queue, job) conn.del(in_flight_keymaker.job_key(job)) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems