demarches-normaliennes/app/jobs/purge_stale_exports_job.rb

8 lines
130 B
Ruby
Raw Normal View History

2020-03-28 16:49:40 +01:00
class PurgeStaleExportsJob < CronJob
self.cron_expression = "*/5 * * * *"
2019-11-27 14:56:08 +01:00
def perform
Export.stale.destroy_all
end
end