[Backgroundrb-devel] Worker suicide

Jonathan Métillon jmetillon at gmail.com
Thu Sep 7 08:17:18 EDT 2006


And does

::BackgrounDRb::MiddleMan.instance.delete_worker @_job_key

actually kill the thread?


On 9/6/06, Ezra Zygmuntowicz <ezmobius at gmail.com> wrote:
>
>
> On Sep 6, 2006, at 5:00 AM, Jonathan Métillon wrote:
>
> I wonder why Ezra proposed the delete_worker method if a kill method
> exists? Maybe it's a brand new feature? i was not aware of it and found
> nothing about this while googling.
>
> On 9/6/06, Chris Roos <chrisjroos at gmail.com> wrote:
> >
> > There is also a kill method for a worker, so I believe (and it seems
> > to work) that you can just use kill (or self.kill) in place of the
> > above chain.
> >
> > The :: references the top level namespace.
> >
> > Chris
> >
> >
>
> There is a kill method you can call in your worker. I need to update it
> however because while it does delete the worker out of the @jobs and
> @timestamps hashes, it doesnt actualy kill the running thread. There will be
> a new release soon that addresses this issue.
>
>
> -Ezra
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060907/84d35067/attachment-0001.html 


More information about the Backgroundrb-devel mailing list