Class: InventoryV2Worker

Inherits:
ApplicationWorker show all
Defined in:
app/workers/inventory_v2_worker.rb

Overview

Generates inventories based on the restaurant's inventory templates and Block History inventories. The templates are defined by Operation team in HungryHub admin panel.

Defined Under Namespace

Classes: Service

Instance Method Summary collapse

Methods inherited from ApplicationWorker

unlimited_retry

Instance Method Details

#perform(restaurant_id, service_type, remade = false) ⇒ Object



310
311
312
313
314
315
# File 'app/workers/inventory_v2_worker.rb', line 310

def perform(restaurant_id, service_type, remade = false)
  Service.new(restaurant_id, service_type, remade).call
rescue StandardError => e
  APMErrorHandler.report(e)
  raise e
end