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

8 lines
160 B
Ruby
Raw Normal View History

class Cron::DiscardedDossiersDeletionJob < Cron::CronJob
2024-06-13 16:40:08 +02:00
self.schedule_expression = "every day at 02:00"
2020-03-19 13:11:45 +01:00
2021-10-21 13:29:47 +02:00
def perform
Dossier.purge_discarded
2020-03-19 13:11:45 +01:00
end
end