[Backgroundrb-devel] can a worker commit suicide?
michael.dauria at gmail.com
Mon Oct 23 16:28:54 EDT 2006
You can have the worker delete itself, just make sure you call
That shoudl ensure the db connection has been closed and delete the instance
of the current worker
On 10/23/06, Bill Walton <bill.walton at charter.net> wrote:
> Hi Eden,
> Eden Li wrote:
> > ... you can specify a :ttl(time to live) in seconds and your worker will
> > get killed after those seconds run out.
> I'm using BackgrounDRb to monitor session activity and deleting user
> data in the database when their session times out. Every time they do
> something, their time-til-timeout gets reset. There's no notion of a max
> time. As long as they keep using the app, their session stays alive.
> I was wondering if there's a way, inside the worker, to do the equivalent
> Backgroundrb-devel mailing list
> Backgroundrb-devel at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Backgroundrb-devel