Sha256: d0d19ef4487df72e3316ab926d94968e3e3d3e13af7da62d11ffb63877c3896d
Contents?: true
Size: 509 Bytes
Versions: 16
Compression:
Stored size: 509 Bytes
Contents
# frozen_string_literal: true # :nocov: # This class showcase a job that is considered unique disregarding any queue. # Currently it will only be compared to other jobs that are disregarding queue. # If one were to compare the unique keys generated against a job that doesn't have the # queue removed it won't work. class UniqueOnAllQueuesJob include Sidekiq::Worker sidekiq_options lock: :until_executed, unique_on_all_queues: true def perform(one, two, three = nil) [one, two, three] end end
Version data entries
16 entries across 16 versions & 1 rubygems