Class: RefreshInventoryPlanWorker
- Inherits:
-
Object
- Object
- RefreshInventoryPlanWorker
- Includes:
- Sidekiq::Job, Workers::StatusBroadcastable
- Defined in:
- app/workers/refresh_inventory_plan_worker.rb
Overview
Sidekiq worker: refresh inventory plan.
Instance Attribute Summary
Attributes included from Workers::StatusBroadcastable
Instance Method Summary collapse
Methods included from Workers::StatusBroadcastable::Overrides
Instance Method Details
#perform ⇒ Object
7 8 9 10 11 12 13 |
# File 'app/workers/refresh_inventory_plan_worker.rb', line 7 def perform total 2 at(1, 'Refreshing report') ViewInventoryPlan.refresh at(2, 'Complete') store redirect_to: '/reports/inventory_planning' end |