Reduce build batch size. Refs #263

This commit is contained in:
Pavel Chipiga 2012-03-24 02:09:49 +02:00
parent 099ba2a3dd
commit 4b96c988d4
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ class Platform < ActiveRecord::Base
end
def build_all(user)
repositories.find_by_name('main').projects.find_in_batches(:batch_size => 5) do |group|
repositories.find_by_name('main').projects.find_in_batches(:batch_size => 2) do |group|
sleep 1
group.each do |p|
%w(i586 x86_64).each do |arch|