Class: ItemAttributeWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Job
Defined in:
app/workers/item_attribute_worker.rb

Overview

Sidekiq worker: item attribute.

Instance Method Summary collapse

Instance Method Details

#perform(item_id) ⇒ Object

Runs the job.

Parameters:

  • item_id (Integer)

    the item id

Returns:

  • (Object)

    the result



13
14
15
16
17
18
# File 'app/workers/item_attribute_worker.rb', line 13

def perform(item_id)
  logger.tagged('item_attribute_worker') do
    logger.info("Processing item ##{item_id}")
    Item.find(item_id).update_rendered_product_specifications
  end
end