Class: RefreshKpiCallDataWorker
- Inherits:
-
Object
- Object
- RefreshKpiCallDataWorker
- Includes:
- Sidekiq::Job, Workers::StatusBroadcastable
- Defined in:
- app/workers/refresh_kpi_call_data_worker.rb
Overview
Sidekiq worker: refresh kpi call data.
Instance Attribute Summary
Attributes included from Workers::StatusBroadcastable
Instance Method Summary collapse
-
#perform ⇒ Object
Runs the job.
Methods included from Workers::StatusBroadcastable::Overrides
Instance Method Details
#perform ⇒ Object
Runs the job.
10 11 12 13 14 15 16 |
# File 'app/workers/refresh_kpi_call_data_worker.rb', line 10 def perform total 2 at(1, 'Refreshing data') ViewKpisTimeOnTask.refresh at(2, 'Complete') store redirect_to: '/reports/kpi_call' end |