Class: Chewy::Strategy::Shoryuken::Worker

Inherits:
Object
  • Object
show all
Includes:
Shoryuken::Worker
Defined in:
lib/chewy/strategy/shoryuken.rb

Instance Method Summary collapse

Instance Method Details

#perform(_sqs_msg, body) ⇒ Object



19
20
21
22
23
# File 'lib/chewy/strategy/shoryuken.rb', line 19

def perform(_sqs_msg, body)
  options = body['options'] || {}
  options[:refresh] = !Chewy.disable_refresh_async if Chewy.disable_refresh_async
  body['type'].constantize.import!(body['ids'], options.deep_symbolize_keys!)
end