Sha256: 9e12c80acdb09f8044c0f60720f61c9032fd91450d07ff06862f266e36d2d9af

Contents?: true

Size: 313 Bytes

Versions: 3

Compression:

Stored size: 313 Bytes

Contents

require 'tengine_job'

jobnet("rjn0027", job_method: :ssh_job, server_name: "localhost", credential_name: "ssh_pk") do
  names = (1..20).map{|i| "j%03d" % i }

  boot_jobs(*names)

  filepath = __FILE__.sub(/jobs\.rb/, 'job')

  names.each do |name|
    job(name, "#{filepath} #{Process.pid} #{name}")
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tengine_job-1.2.2 examples/0027_parallel_ssh_jobs.rb
tengine_job-1.2.1 examples/0027_parallel_ssh_jobs.rb
tengine_job-1.2.0 examples/0027_parallel_ssh_jobs.rb