[Backgroundrb-devel] When does a worker terminate
hemant
gethemant at gmail.com
Fri Feb 27 03:17:44 EST 2009
On Fri, Feb 27, 2009 at 12:18 PM, Raghu Srinivasan
<raghu.srinivasan at gmail.com> wrote:
> Hemant - I thought that script/background start starts all workers
> and script/background stop stops all workers.
> How does one explicitly close/exit a particular worker from within Rails?
>
You can call #delete on worker. For example:
MiddleMan.worker("worker_name",<optional_worker_key>).delete
Or you can call #exit from within the worker.
More information about the Backgroundrb-devel
mailing list