demarches-normaliennes/app/jobs/purge_stale_exports_job.rb

7 lines
138 B
Ruby

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