[Backgroundrb-devel] Worker suicide
ezmobius at gmail.com
Wed Sep 6 13:32:44 EDT 2006
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.
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Backgroundrb-devel