From: ara.t.howard@... Date: 2006-09-25T00:57:17+09:00 Subject: Re: [ANN] slave-0.2.0 On Sun, 24 Sep 2006, Ezra Zygmuntowicz wrote: > This is a great library Ara, I am writing a library that wraps up the > slave lib into another interface for controlling jobs with timers and > a few other things. So the master process holds a thread pool with > references to slave classes in it so that you can set a limit on the > number of running slaves. Using it to offload jobs from a rails app to > not hold up the http flow. I have a question though. What would be the > cleanest way to have a slave class signal that it is finished working > and needs to be kill'ed. I know there is the shutdown method that you > could call from the master process to shutdown a slave. But is there > something similar that can be called from a slave process? Or should I > just let the slave process exit! and let the heartbeat cleanup after > the dead slaves? hmmm. good question. i could add a feature where at_exit handlers could be added, somthing like s = Slave.new( :at_exit => lambda{}){ do_child_stuff } would that be sufficient? -a -- in order to be effective truth must penetrate like an arrow - and that is likely to hurt. -- wei wu wei