demarches-normaliennes/app/jobs/cron/expired_dossiers_deletion_job.rb

10 lines
350 B
Ruby
Raw Normal View History

class Cron::ExpiredDossiersDeletionJob < Cron::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
ExpiredDossiersDeletionService.process_expired_dossiers_termine
end
end