diff --git a/config/schedule.rb b/config/schedule.rb index a72cec32ca..1016d061bc 100644 --- a/config/schedule.rb +++ b/config/schedule.rb @@ -9,7 +9,6 @@ env "MAILTO", app_config["SCHEDULE_NOTIFICATIONS"] if app_config["SCHEDULE_NOTIF # If we use -e with a file containing specs, rspec interprets it and filters out our examples 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, at: '4:30am' do rake 'ofn:data:remove_transient_data' @@ -22,9 +21,3 @@ end every 4.hours do rake 'db2fog:backup' if app_config['S3_BACKUPS_BUCKET'] end - -every 5.minutes do - enqueue_job 'HeartbeatJob', priority: 0 - enqueue_job 'SubscriptionPlacementJob', priority: 0 - enqueue_job 'SubscriptionConfirmJob', priority: 0 -end diff --git a/config/sidekiq.yml b/config/sidekiq.yml index be32474bce..1f063518ca 100644 --- a/config/sidekiq.yml +++ b/config/sidekiq.yml @@ -7,3 +7,11 @@ :queues: - default - mailers + +:schedule: + HeartbeatJob: + every: "5m" + SubscriptionPlacementJob: + every: "5m" + SubscriptionConfirmJob: + every: "5m"