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

8 lines
150 B
Ruby
Raw Normal View History

class Cron::PurgeStaleExportsJob < Cron::CronJob
self.schedule_expression = "every 5 minutes"
2019-11-27 14:56:08 +01:00
def perform
Export.stale.destroy_all
end
end