[fix #1449] Notification: add job
This commit is contained in:
parent
6607de4827
commit
9b4d9dc26c
2 changed files with 8 additions and 0 deletions
|
@ -68,6 +68,7 @@ En local, un utilisateur de test est créé automatiquement, avec les identifian
|
|||
FindDubiousProceduresJob.set(cron: "0 0 * * *").perform_later
|
||||
Administrateurs::ActivateBeforeExpirationJob.set(cron: "0 8 * * *").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
|
||||
|
||||
|
|
7
app/jobs/gestionnaire_email_notification_job.rb
Normal file
7
app/jobs/gestionnaire_email_notification_job.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
class GestionnaireEmailNotificationJob < ApplicationJob
|
||||
queue_as :cron
|
||||
|
||||
def perform(*args)
|
||||
NotificationService.send_gestionnaire_email_notification
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue