Sha256: 6eef49362b7c53605c10ef54e7f6d151b6bab0e8fa397e095eaa2c1b4a014e3f
Contents?: true
Size: 455 Bytes
Versions: 22
Compression:
Stored size: 455 Bytes
Contents
# frozen_string_literal: true require 'bundler/setup' require 'polyphony' require 'fileutils' FileUtils.cd(__dir__) def monitor_process(cmd) while true puts "Starting #{cmd}" Polyphony::Process.watch(cmd) sleep 5 end end puts "pid: #{Process.pid}" puts 'Starting stress test' spin { monitor_process('ruby server.rb') } spin { monitor_process('ruby multi_agent_supervisor.rb') } spin { monitor_process('ruby multi_client.rb') } sleep
Version data entries
22 entries across 22 versions & 1 rubygems