Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Backgroundb question
Damjan Rems
7/18/2007 5:40:00 AM
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
--
Posted via
http://www.ruby-...
.
1 Answer
hemant
7/18/2007 5:51:00 AM
0
On 7/18/07, Damjan Rems <d_rems@yahoo.com> 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.g...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Backgroundb question
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password