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

7 lines
150 B
Ruby

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