1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/app/workers/statistic_worker.rb

14 lines
324 B
Ruby
Raw Normal View History

# frozen_string_literal: true
# Asynchronously generate the statistics for the last passed day.
# This worker is triggered every nights, see schedule.yml
2016-03-23 18:39:41 +01:00
class StatisticWorker
include Sidekiq::Worker
def perform
return unless Setting.get('statistics_module')
2016-03-23 18:39:41 +01:00
StatisticService.new.generate_statistic
end
end