Class: BudgetRefresherAllWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Job
Defined in:
app/workers/budget_refresher_all_worker.rb

Overview

Sidekiq worker: budget refresher all.

Instance Method Summary collapse

Instance Method Details

#performObject

Runs the job.

Returns:

  • (Object)

    the result



12
13
14
15
16
17
18
# File 'app/workers/budget_refresher_all_worker.rb', line 12

def perform
  months = 1..12
  year = Date.current.year
  months.each do |month|
    BudgetRefresherWorker.perform_async(year, month)
  end
end