Sha256: 582749266ffbb196fbca6ee0e7cbbc28ed84429565a4d6ac01e68b37d7a40b4d

Contents?: true

Size: 167 Bytes

Versions: 10

Compression:

Stored size: 167 Bytes

Contents

class UniqueWorker
  include Sidekiq::Worker

  sidekiq_options merger: { key: "foo", unique: true }

  def perform(*ids)
    puts "Get IDs: #{ids.inspect}"
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
sidekiq-merger-0.1.0 app/workers/unique_worker.rb
sidekiq-merger-0.0.12 app/workers/unique_worker.rb
sidekiq-merger-0.0.11 app/workers/unique_worker.rb
sidekiq-merger-0.0.10 app/workers/unique_worker.rb
sidekiq-merger-0.0.9 app/workers/unique_worker.rb
sidekiq-merger-0.0.8 app/workers/unique_worker.rb
sidekiq-merger-0.0.7 app/workers/unique_worker.rb
sidekiq-merger-0.0.6 app/unique_worker.rb
sidekiq-merger-0.0.5 app/unique_worker.rb
sidekiq-merger-0.0.4 app/unique_worker.rb