Two actualy:
- How to automatically delete worker when the job is done?
- 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
Two actualy:
by
TheR
On 7/18/07, Damjan R. [email protected] wrote:
Two actualy:
- How to automatically delete worker when the job is done?
- 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: developmentby
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs