Compute administrator usage statistics every night
This commit is contained in:
parent
6b0832047b
commit
f9a4369a54
2 changed files with 6 additions and 0 deletions
|
@ -64,6 +64,7 @@ En local, un utilisateur de test est créé automatiquement, avec les identifian
|
||||||
AutoArchiveProcedureJob.set(cron: "* * * * *").perform_later
|
AutoArchiveProcedureJob.set(cron: "* * * * *").perform_later
|
||||||
WeeklyOverviewJob.set(cron: "0 8 * * 0").perform_later
|
WeeklyOverviewJob.set(cron: "0 8 * * 0").perform_later
|
||||||
AutoReceiveDossiersForProcedureJob.set(cron: "* * * * *").perform_later(procedure_declaratoire_id, Dossier.states.fetch(:en_instruction))
|
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
|
FindDubiousProceduresJob.set(cron: "0 0 * * *").perform_later
|
||||||
Administrateurs::ActivateBeforeExpirationJob.set(cron: "0 8 * * *").perform_later
|
Administrateurs::ActivateBeforeExpirationJob.set(cron: "0 8 * * *").perform_later
|
||||||
WarnExpiringDossiersJob.set(cron: "0 0 1 * *").perform_later
|
WarnExpiringDossiersJob.set(cron: "0 0 1 * *").perform_later
|
||||||
|
|
5
app/jobs/update_administrateur_usage_statistics_job.rb
Normal file
5
app/jobs/update_administrateur_usage_statistics_job.rb
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
class UpdateAdministrateurUsageStatisticsJob < ApplicationJob
|
||||||
|
def perform
|
||||||
|
AdministrateurUsageStatisticsService.new.update_administrateurs
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue