mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-05 16:24:21 +01:00
14 lines
330 B
Ruby
14 lines
330 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')
|
|
|
|
Statistics::BuilderService.generate_statistic
|
|
end
|
|
end
|