Backgroundb question

D

Damjan Rems

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
 
H

hemant

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,311
Members
47,986
Latest member
ColbyG935

Latest Threads

Top