From 97ae4def98406acee78f3bbdf3076a0b392c3e1f Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sat, 15 Aug 2020 11:24:00 +0100 Subject: [PATCH] Schedule cleanup task to run once per month --- config/schedule.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/schedule.rb b/config/schedule.rb index 373ee7c57d..94fcacc54d 100644 --- a/config/schedule.rb +++ b/config/schedule.rb @@ -11,6 +11,9 @@ env "MAILTO", app_config["SCHEDULE_NOTIFICATIONS"] if app_config["SCHEDULE_NOTIF job_type :run_file, "cd :path; :environment_variable=:environment bundle exec script/rails runner :task :output" job_type :enqueue_job, "cd :path; :environment_variable=:environment bundle exec script/enqueue :task :priority :output" +every 1.month do + rake 'ofn:data:remove_transient_data' +end every 1.day, at: '2:45am' do rake 'db2fog:clean' if app_config['S3_BACKUPS_BUCKET']