lib/papercall/rest_fetcher.rb in papercall-0.15.1 vs lib/papercall/rest_fetcher.rb in papercall-0.15.2

- old
+ new

@@ -48,11 +48,11 @@ def fetch_ratings start_time = Time.now print 'Fetching ratings for all submissions from Papercall API...' - Parallel.each(analysis, in_threads: 8) do |submission| + Parallel.each(analysis, in_threads: 32) do |submission| unless submission['ratings'] ratings_url = "#{SUBMISSIONS_URL}/#{submission['id']}/ratings" submission['ratings'] = papercall(ratings_url) end submission['ratings'] = [] unless submission['ratings'] @@ -61,10 +61,10 @@ end def fetch_feedback start_time = Time.now print 'Fetching feedback for all submissions from Papercall API...' - Parallel.each(analysis, in_threads: 8) do |submission| + Parallel.each(analysis, in_threads: 32) do |submission| unless submission['feedback'] feedback_url = "#{SUBMISSIONS_URL}/#{submission['id']}/feedback" submission['feedback'] = papercall(feedback_url) end submission['feedback'] = [] unless submission['feedback']