Sha256: e4eb62c58b859adf444e807096ff86fd2c31c3d510a032796062e509108c919f

Contents?: true

Size: 366 Bytes

Versions: 6

Compression:

Stored size: 366 Bytes

Contents

require_relative "sidekiq/merger"

Sidekiq.configure_client do |config|
  config.client_middleware do |chain|
    chain.add Sidekiq::Merger::Middleware
  end
end

Sidekiq.configure_server do |config|
  config.client_middleware do |chain|
    chain.add Sidekiq::Merger::Middleware
  end
end

if Sidekiq.server?
  task = Sidekiq::Merger.create_task
  task.execute
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sidekiq-merger-0.1.0 lib/sidekiq-merger.rb
sidekiq-merger-0.0.12 lib/sidekiq-merger.rb
sidekiq-merger-0.0.11 lib/sidekiq-merger.rb
sidekiq-merger-0.0.10 lib/sidekiq-merger.rb
sidekiq-merger-0.0.9 lib/sidekiq-merger.rb
sidekiq-merger-0.0.8 lib/sidekiq-merger.rb