diff --git a/Rakefile b/Rakefile index 10e9cd050..05eb30807 100644 --- a/Rakefile +++ b/Rakefile @@ -10,7 +10,7 @@ require 'resque_scheduler/tasks' task "resque:setup" => :environment do Resque.after_fork do Resque.redis.client.reconnect - Resque.schedule = YAML.load_file(File.join(Rails.root, 'config/resque_schedule.yml')) # load the schedule + # Resque.schedule = YAML.load_file(File.join(Rails.root, 'config/resque_schedule.yml')) # load the schedule end Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection } end diff --git a/config/schedule.rb b/config/schedule.rb index 9e9cb2b29..0d04267e2 100644 --- a/config/schedule.rb +++ b/config/schedule.rb @@ -26,6 +26,14 @@ every :day, at: '3:00 am' do rake 'activity_feeds:clear', output: 'log/activity_feeds.log' end +every 3.minute do + runner 'AbfWorker::BuildListsPublishTaskManager.new.run', output: 'log/task_manager.log' +end + +every 1.minute do + runner 'RpmBuildNode.cleanup!' +end + every 1.hour do rake 'buildlist:clear:outdated_canceling', output: 'log/canceling_build_list_clear.log' end