#4807 separate job

This commit is contained in:
maatinito 2020-03-18 16:55:58 -10:00
parent 8ff34780d1
commit a4ba48fbce
2 changed files with 8 additions and 0 deletions

View file

@ -79,6 +79,7 @@ En local, un utilisateur de test est créé automatiquement, avec les identifian
OperationsSignatureJob.set(cron: "0 6 * * *").perform_later OperationsSignatureJob.set(cron: "0 6 * * *").perform_later
ExpiredDossiersDeletionJob.set(cron: "0 7 * * *").perform_later ExpiredDossiersDeletionJob.set(cron: "0 7 * * *").perform_later
PurgeStaleExportsJob.set(cron: "*/5 * * * *").perform_later PurgeStaleExportsJob.set(cron: "*/5 * * * *").perform_later
NotifyDraftNotSubmittedJob.set(cron: "0 7 * * *").perform_later
### Voir les emails envoyés en local ### Voir les emails envoyés en local

View file

@ -0,0 +1,7 @@
class NotifyDraftNotSubmittedJob < ApplicationJob
queue_as :cron
def perform(*args)
Dossier.notify_draft_not_submitted
end
end