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

Version Path
sidekiq-unique-jobs-6.0.13 examples/unique_on_all_queues_job.rb
sidekiq-unique-jobs-6.0.12 examples/unique_on_all_queues_job.rb
sidekiq-unique-jobs-6.0.11 examples/unique_on_all_queues_job.rb
sidekiq-unique-jobs-6.0.10 examples/unique_on_all_queues_job.rb
sidekiq-unique-jobs-6.0.9 examples/unique_on_all_queues_job.rb
sidekiq-unique-jobs-6.0.8 examples/unique_on_all_queues_job.rb
sidekiq-unique-jobs-6.0.7 examples/unique_on_all_queues_job.rb
sidekiq-unique-jobs-6.0.6 examples/unique_on_all_queues_job.rb
sidekiq-unique-jobs-6.0.5 examples/unique_on_all_queues_job.rb
sidekiq-unique-jobs-6.0.4 examples/unique_on_all_queues_job.rb
sidekiq-unique-jobs-6.0.3 examples/unique_on_all_queues_job.rb
sidekiq-unique-jobs-6.0.2 examples/unique_on_all_queues_job.rb
sidekiq-unique-jobs-6.0.1 examples/unique_on_all_queues_job.rb
sidekiq-unique-jobs-6.0.0 examples/unique_on_all_queues_job.rb
sidekiq-unique-jobs-6.0.0.rc8 examples/unique_on_all_queues_job.rb
sidekiq-unique-jobs-6.0.0.rc7 examples/unique_on_all_queues_job.rb