Class: RefreshInventoryPlanWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Job, Workers::StatusBroadcastable
Defined in:
app/workers/refresh_inventory_plan_worker.rb

Instance Attribute Summary

Attributes included from Workers::StatusBroadcastable

#broadcast_status_updates

Instance Method Summary collapse

Methods included from Workers::StatusBroadcastable::Overrides

#at, #store, #total

Instance Method Details

#performObject



5
6
7
8
9
10
11
# File 'app/workers/refresh_inventory_plan_worker.rb', line 5

def perform
  total 2
  at(1, 'Refreshing report')
  ViewInventoryPlan.refresh
  at(2, 'Complete')
  store redirect_to: '/reports/inventory_planning'
end