demarches-normaliennes/app/jobs/cron/purge_stale_archives_job.rb
2021-04-28 11:40:58 +02:00

7 lines
152 B
Ruby

class Cron::PurgeStaleArchivesJob < Cron::CronJob
self.schedule_expression = "every 5 minutes"
def perform
Archive.stale.destroy_all
end
end