Rollback schedule.rb

This commit is contained in:
Vokhmin Alexey V 2014-02-26 13:22:55 +04:00
parent ccd32a4eb2
commit 139dc177d4
2 changed files with 9 additions and 1 deletions

View File

@ -10,7 +10,7 @@ require 'resque_scheduler/tasks'
task "resque:setup" => :environment do task "resque:setup" => :environment do
Resque.after_fork do Resque.after_fork do
Resque.redis.client.reconnect 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 end
Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection } Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection }
end end

View File

@ -26,6 +26,14 @@ every :day, at: '3:00 am' do
rake 'activity_feeds:clear', output: 'log/activity_feeds.log' rake 'activity_feeds:clear', output: 'log/activity_feeds.log'
end 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 every 1.hour do
rake 'buildlist:clear:outdated_canceling', output: 'log/canceling_build_list_clear.log' rake 'buildlist:clear:outdated_canceling', output: 'log/canceling_build_list_clear.log'
end end