Sha256: e1ba24409d71ddf52d122a11d5b62d5d918dd7a048f589e388999b3df397433a
Contents?: true
Size: 511 Bytes
Versions: 6
Compression:
Stored size: 511 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 unique: :until_executed, unique_on_all_queues: true def perform(one, two, three = nil) [one, two, three] end end
Version data entries
6 entries across 6 versions & 1 rubygems