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

8 lines
163 B
Ruby
Raw Permalink Normal View History

class Cron::DiscardedProceduresDeletionJob < Cron::CronJob
self.schedule_expression = "every day at 1 am"
2020-03-26 17:37:55 +01:00
def perform
Procedure.purge_discarded
2020-03-26 17:37:55 +01:00
end
end