demarches-normaliennes/app/jobs/expired_dossiers_deletion_job.rb

9 lines
270 B
Ruby
Raw Normal View History

2020-03-28 16:49:40 +01:00
class ExpiredDossiersDeletionJob < CronJob
self.schedule_expression = "every day at 7 am"
def perform(*args)
2020-03-20 22:28:52 +01:00
ExpiredDossiersDeletionService.process_expired_dossiers_brouillon
ExpiredDossiersDeletionService.process_expired_dossiers_en_construction
end
end