Merge branch '104525318-history_import' into staging

This commit is contained in:
Vladimir Krylov 2016-01-19 10:01:14 +02:00
commit f3cfd694c6
2 changed files with 4 additions and 3 deletions

View file

@ -6,7 +6,7 @@ namespace :import do
end
def parallel_import all_ids
thread_pool = (Parallel.processor_count rescue 4) - 1
thread_pool = (Parallel.processor_count rescue 4)
threads = []
all_ids.each_with_index do |one_id, i|