discourse/app/jobs/scheduled/clean_up_exports.rb

10 lines
192 B
Ruby
Raw Normal View History

module Jobs
class CleanUpExports < Jobs::Scheduled
every 2.day
def execute(args)
2014-12-29 00:13:49 +08:00
UserExport.remove_old_exports # delete exported CSV files older than 2 days
end
end
end