timeout changes

This commit is contained in:
secgen server
2018-02-09 15:34:01 +00:00
parent 6045c1f187
commit c7201f63cf
2 changed files with 2 additions and 2 deletions

View File

@@ -118,7 +118,7 @@ def get_delete_opts
end
def parse_opts(opts)
options = {:instances => '', :max_threads => 3, :id => nil, :all => false}
options = {:instances => '', :max_threads => 2, :id => nil, :all => false}
opts.each do |opt, arg|
case opt
when '--instances'

View File

@@ -39,7 +39,7 @@ class GemExec
Dir.chdir(working_dir)
output_hash = {:output => '', :status => 0, :exception => nil}
begin
output_hash[:output] = ProcessHelper.process("#{gem_path} #{arguments}", {:pty => true, :timeout => (60 * 10),
output_hash[:output] = ProcessHelper.process("#{gem_path} #{arguments}", {:pty => true, :timeout => (60 * 30),
include_output_in_exception: true})
rescue Exception => ex
output_hash[:status] = 1