- Updated ClassyFireAPI.submit_query_input_in_chunks

This commit is contained in:
djoumbou 2016-03-09 21:42:31 -07:00
parent 767a49fc07
commit 3891deaba4
1 changed files with 10 additions and 9 deletions

View File

@ -175,6 +175,7 @@ module ClassyFireAPI
while i < initial_nr_of_jobs while i < initial_nr_of_jobs
title = File.basename(absolute_path).split(".")[0] + "_yannick" + "_part_#{i}" title = File.basename(absolute_path).split(".")[0] + "_yannick" + "_part_#{i}"
if i <= subdivised_groups.length
begin begin
puts "submitting #{title}" puts "submitting #{title}"
q = submit_query(title,subdivised_groups[i-1].join("\n"),type) q = submit_query(title,subdivised_groups[i-1].join("\n"),type)
@ -185,6 +186,7 @@ module ClassyFireAPI
end end
i = i + 1 i = i + 1
end end
end
puts "Going to sleep at #{Time.now - @start_time} for #{sleeping_time} s." puts "Going to sleep at #{Time.now - @start_time} for #{sleeping_time} s."
sleep(sleeping_time) sleep(sleeping_time)
@ -202,7 +204,6 @@ module ClassyFireAPI
puts e.message puts e.message
puts e.backtrace.inspect puts e.backtrace.inspect
end end
end end
i = k i = k
puts "Going to sleep at #{Time.now - @start_time} for #{sleeping_time} s." puts "Going to sleep at #{Time.now - @start_time} for #{sleeping_time} s."