Sha256: 8eb85ee0d351cf12a2b7117d4cda2595d4b84b25958e20e75168f9c06c3c1088

Contents?: true

Size: 270 Bytes

Versions: 16

Compression:

Stored size: 270 Bytes

Contents

# frozen_string_literal: true

# :nocov:

class UniqueJobOnConflictReject
  include Sidekiq::Worker
  sidekiq_options lock: :while_executing,
                  queue: :customqueue,
                  on_conflict: :reject

  def perform(one, two)
    [one, two]
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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