Perlには、Parallel::Scoreboardというのがあって便利
Rubyにはないようなので勉強がてら書いてみた。
https://github.com/hisaichi5518/paraboard
require 'paraboard' para = Paraboard::Registry.new(base_dir: "/tmp/score-board") # in each worker process para.update("this is my current status") # to read status of all worker processes stats = para.read_all stats.each do |pid, status| puts "pid(#{pid}) status: #{status}" end