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

14 lines
330 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')
2022-08-29 17:34:09 +02:00
Statistics::BuilderService.generate_statistic
2016-03-23 18:39:41 +01:00
end
end