mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
14 lines
324 B
Ruby
14 lines
324 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Asynchronously generate the statistics for the last passed day.
|
|
# This worker is triggered every nights, see schedule.yml
|
|
class StatisticWorker
|
|
include Sidekiq::Worker
|
|
|
|
def perform
|
|
return unless Setting.get('statistics_module')
|
|
|
|
StatisticService.new.generate_statistic
|
|
end
|
|
end
|