Rollback schedule.rb
This commit is contained in:
parent
ccd32a4eb2
commit
139dc177d4
2
Rakefile
2
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue