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

8 lines
282 B
Ruby

class Cron::ExpiredDossiersDeletionJob < Cron::CronJob
self.schedule_expression = "every day at 7 am"
def perform(*args)
ExpiredDossiersDeletionService.process_expired_dossiers_brouillon
ExpiredDossiersDeletionService.process_expired_dossiers_en_construction
end
end