[Backgroundrb-devel] Exceptions in workers
Joe Van Dyk
joevandyk at gmail.com
Fri Dec 21 02:49:45 EST 2007
On Dec 20, 2007 11:43 PM, hemant kumar <gethemant at gmail.com> wrote:
> On Thu, 2007-12-20 at 23:15 -0800, Joe Van Dyk wrote:
> > If an exception is thrown in a worker, will the worker process exit?
> > If it does and I don't want it to exit, do I need to rescue all
> > exceptions in every worker method?
> Every worker is just a Ruby program forked in a new process, so a
> unhandled exception WILL cause the worker to exit.
When the worker is scheduled to start a new job, a new process will
run if the old one stopped, right?
More information about the Backgroundrb-devel