[#1946] Send expiring dossier summary every month
This commit is contained in:
parent
ac82a72dcc
commit
42ca92466c
2 changed files with 8 additions and 0 deletions
|
@ -53,6 +53,7 @@ L'application tourne à l'adresse `http://localhost:3000`. Un utilisateur de tes
|
|||
AutoReceiveDossiersForProcedureJob.set(cron: "* * * * *").perform_later(procedure_declaratoire_id, Dossier.states.fetch(:en_instruction))
|
||||
FindDubiousProceduresJob.set(cron: "0 0 * * *").perform_later
|
||||
Administrateurs::ActivateBeforeExpirationJob.set(cron: "0 8 * * *").perform_later
|
||||
WarnExpiringDossiersJob.set(cron: "0 0 1 * *").perform_later
|
||||
|
||||
## Mise à jour de l'application
|
||||
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
require Rails.root.join("lib", "tasks", "task_helper")
|
||||
|
||||
namespace :'2018_08_31_monthly_dossier_expiration_summary' do
|
||||
task enable: :environment do
|
||||
WarnExpiringDossiersJob.set(cron: "0 0 1 * *").perform_later
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue