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

7 lines
220 B
Ruby

class Cron::ExpiredDossiersBrouillonDeletionJob < Cron::CronJob
self.schedule_expression = "every day at 10 pm"
def perform(*args)
ExpiredDossiersDeletionService.new.process_expired_dossiers_brouillon
end
end