Class: RefreshInventoryReportWorker
Instance Attribute Summary
#broadcast_status_updates
Instance Method Summary
collapse
#at, #store, #total
Instance Method Details
7
8
9
10
11
12
13
14
15
16
17
|
# File 'app/workers/refresh_inventory_report_worker.rb', line 7
def perform
total 4
at(1, 'Refreshing item facts')
Analytic::ItemDemandFact.refresh_data
at(2, 'Refreshing forecast')
ItemDemandForecast.populate
at(3, 'Refreshing report')
ViewInventoryPlan.refresh
at(4, 'Complete')
store redirect_to: '/reports/inventory_planning'
end
|