[Backgroundrb-devel] Worker suicide

Jonathan Métillon jmetillon at gmail.com
Wed Sep 6 04:11:57 EDT 2006


Thanks Ezra that works very well!

Can you tell me what means the :: at the start of the line?

On 9/1/06, Ezra Zygmuntowicz <ezmobius at gmail.com> wrote:
>
>
> On Sep 1, 2006, at 8:00 AM, Jonathan Métillon wrote:
>
> Hi the list people, hi Ezra,
>
> I just read from this message
> http://rubyforge.org/pipermail/backgroundrb-devel/2006-July/000134.htmlthat BackgrounDRb will offer a way to kill a worker from within itself.
>
> As this message is from 7/25, I wonder if this feature has been added
> since. If not, is there any way to do it? I tried this:
>
> MiddleMan.delete_worker (@_job_key)
>
> But it raise:
>
> uninitialized constant MiddleMan - (NameError)
>
> Thanks
>
> Jonathan
> _______________________________________________
> Backgroundrb-devel mailing list
> Backgroundrb-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/backgroundrb-devel
>
> Jonathan-
>
> If your worker is done and not doing any more computation you can just
> call kill from within your worker. If it is still working on something and
> you need its thread to be killed also you can do like this:
>
> ::BackgrounDRb::MiddleMan.instance.delete_worker @_job_key
>
> -Ezra
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060906/a17720fd/attachment.html 


More information about the Backgroundrb-devel mailing list