Class: ChewyKiqqer::Worker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
lib/chewy_kiqqer/worker.rb

Instance Method Summary collapse

Instance Method Details

#perform(index_name, ids) ⇒ Object



10
11
12
13
14
# File 'lib/chewy_kiqqer/worker.rb', line 10

def perform(index_name, ids)
  ActiveSupport::Notifications.instrument('perform.chewy_kiqqer', index_name: index_name, ids: ids) do
    with_lock(index_name, ids)
  end
end