Skip to content
This project is no longer active. See open5 instead.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Tasks -- Better Process Manager for Ruby

Traffic Control


tasks provides spawn even in ruby 1.8.

require 'tasks'
include Tasks

pid = spawn './something.rb'
system "kill #{pid}"

spawn is like system with '&' and it also returns the procces id.


tasks supports a couple to do a love pact.

require 'tasks'
include Tasks

master_pid = spawn './master.rb'
slave_pid = spawn './slave.rb'

fork do
  love_pact master_pid, slave_pid

If a master died, the slave dies immediately.

Note that now love_pact works only in UNIX.

You can’t perform that action at this time.