[fix #1449] Notification: add job

This commit is contained in:
simon lehericey 2019-03-13 17:27:36 +01:00
parent 6607de4827
commit 9b4d9dc26c
2 changed files with 8 additions and 0 deletions

View file

@ -68,6 +68,7 @@ En local, un utilisateur de test est créé automatiquement, avec les identifian
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
GestionnaireEmailNotificationJob.set(cron: "0 10 * * 1,2,3,4,5,6").perform_later
### Voir les emails envoyés en local ### Voir les emails envoyés en local

View file

@ -0,0 +1,7 @@
class GestionnaireEmailNotificationJob < ApplicationJob
queue_as :cron
def perform(*args)
NotificationService.send_gestionnaire_email_notification
end
end