lib/zold/node/farm.rb in zold-0.14.38 vs lib/zold/node/farm.rb in zold-0.14.39

- old
+ new

@@ -67,11 +67,12 @@ threads: @threads.map do |t| "#{t.name}/#{t.status}/#{t.alive? ? 'A' : 'D'}" end.join(', '), cleanup: @cleanup.status, pipeline: @pipeline.size, - best: best.map(&:to_mnemo).join(', ') + best: best.map(&:to_mnemo).join(', '), + alive: @alive } end def start(host, port, strength: 8, threads: 8) @log.info('Zero-threads farm won\'t score anything!') if threads.zero? @@ -101,10 +102,10 @@ end unless a.count == max @log.info("It's time to stop the cleanup thread (#{a.count} != #{max}, alive=#{@alive})...") break end - VerboseThread.new(@log).run do + VerboseThread.new(@log).run(true) do cleanup(host, port, strength, threads) end end end @log.info("Farm started with #{@threads.count} threads at #{host}:#{port}, strength is #{strength}")