Compute administrator usage statistics every night

This commit is contained in:
Frederic Merizen 2019-03-07 17:34:42 +01:00
parent 6b0832047b
commit f9a4369a54
2 changed files with 6 additions and 0 deletions

View file

@ -64,6 +64,7 @@ En local, un utilisateur de test est créé automatiquement, avec les identifian
AutoArchiveProcedureJob.set(cron: "* * * * *").perform_later
WeeklyOverviewJob.set(cron: "0 8 * * 0").perform_later
AutoReceiveDossiersForProcedureJob.set(cron: "* * * * *").perform_later(procedure_declaratoire_id, Dossier.states.fetch(:en_instruction))
SendinblueUpdateAdministrateursJob.set(cron: "0 10 * * *").perform_later
FindDubiousProceduresJob.set(cron: "0 0 * * *").perform_later
Administrateurs::ActivateBeforeExpirationJob.set(cron: "0 8 * * *").perform_later
WarnExpiringDossiersJob.set(cron: "0 0 1 * *").perform_later

View file

@ -0,0 +1,5 @@
class UpdateAdministrateurUsageStatisticsJob < ApplicationJob
def perform
AdministrateurUsageStatisticsService.new.update_administrateurs
end
end