From: hemant Date: 2007-07-18T14:50:55+09:00 Subject: Re: Backgroundb question On 7/18/07, Damjan Rems wrote: > Two actualy: > > 1. How to automatically delete worker when the job is done? > 2. Must the backgroundrb be restarted if the worker code has changed. Or > is there another way. > If it has anything to do with this I have :rails_env: development > > by > TheR > for deleting a worker, when its done, you can call self.delete from worker or worker.delete from outside, where worker is an instance of your worker. You can also call exit from the end of worker to stop its existence(this works because, each of your worker is a process of its own). Yes, you need to restart your worker, if you have changed code and it has nothing to do with rails environment you are in. -- Let them talk of their oriental summer climes of everlasting conservatories; give me the privilege of making my own summer with my own coals. http://blog.gnufied.org