[Backgroundrb-devel] Worker suicide

Ezra Zygmuntowicz ezmobius at gmail.com
Fri Sep 1 11:24:15 EDT 2006

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.html that 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


	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  

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060901/b0f472a5/attachment.html 

More information about the Backgroundrb-devel mailing list