demarches-normaliennes/app/jobs/purge_stale_exports_job.rb

8 lines
138 B
Ruby
Raw Normal View History

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