2020-11-13 14:34:53 +01:00
|
|
|
class Cron::ExpiredDossiersDeletionJob < Cron::CronJob
|
2020-04-01 15:26:46 +02:00
|
|
|
self.schedule_expression = "every day at 7 am"
|
2020-02-26 17:44:06 +01:00
|
|
|
|
|
|
|
def perform(*args)
|
2020-03-20 22:28:52 +01:00
|
|
|
ExpiredDossiersDeletionService.process_expired_dossiers_brouillon
|
2020-03-31 18:05:46 +02:00
|
|
|
ExpiredDossiersDeletionService.process_expired_dossiers_en_construction
|
2021-08-18 11:19:19 +02:00
|
|
|
ExpiredDossiersDeletionService.process_expired_dossiers_termine
|
2020-02-26 17:44:06 +01:00
|
|
|
end
|
|
|
|
end
|