demarches-normaliennes/app/jobs/purge_stale_exports_job.rb
2020-03-31 12:25:46 +02:00

7 lines
130 B
Ruby

class PurgeStaleExportsJob < CronJob
self.cron_expression = "*/5 * * * *"
def perform
Export.stale.destroy_all
end
end