[Backgroundrb-devel] MY worker won't stop working

Ezra Zygmuntowicz ezmobius at gmail.com
Mon Jul 31 10:44:02 EDT 2006

On Jul 30, 2006, at 5:11 PM, Chris H wrote:

> Hi Ezra,
> thanks for the reply.
> There's a ruby process that appears in top when I fire off the do_work
> method.
> It uses around 30-50% cpu and disappears once all processing has  
> completed.
> When I try to stop processing using delete_worker I was expecting this
> ruby process to stop,
> but understand/expect that backgroundrb is still running.
> I tried
> MiddleMan[:process_watcher].terminate &&  MiddleMan.delete_worker
> (:process_watcher)
> however this seems to do less then MiddleMan.delete_worker
> (:process_watcher)  on its own.
> As Michael Siebert wrote, will I need to have do_work return when I  
> want
> my process to stop?
> Thanks in advance,
> Chris.

Hey Chris-

	By itself Backgroundrb won't spawn any extra processes except for  
itself. Are you doing a system call or using `` to call an external  
program? Or are you using fork at all? Maybe if you paste your worker  
code and how you are calling it here I can help you track down the  


More information about the Backgroundrb-devel mailing list