Temporally disable mass build from extra nodes

This commit is contained in:
Vokhmin Alexey V 2013-11-22 21:14:31 +04:00
parent 34b4447ec7
commit e3e6bdbe0a
1 changed files with 3 additions and 1 deletions

View File

@ -15,7 +15,9 @@ class Api::V1::JobsController < Api::V1::BaseController
build_lists = build_lists.for_platform(platform_ids) if platform_ids.present? build_lists = build_lists.for_platform(platform_ids) if platform_ids.present?
ActiveRecord::Base.transaction do ActiveRecord::Base.transaction do
if current_user.system? if current_user.system?
if task = (Resque.pop('rpm_worker_default') || Resque.pop('rpm_worker')) # Temporally
# if task = (Resque.pop('rpm_worker_default') || Resque.pop('rpm_worker'))
if task = Resque.pop('rpm_worker_default')
@build_list = BuildList.where(:id => task['args'][0]['id']).first @build_list = BuildList.where(:id => task['args'][0]['id']).first
end end
@build_list ||= build_lists.external_nodes(:everything).first @build_list ||= build_lists.external_nodes(:everything).first