Go Back   Rhinocerus > Newsgroup > Newsgroup comp.lang.ruby

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 07-18-2007, 05:40 AM
Damjan Rems
Guest
 
Posts: n/a
Default Backgroundb question

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-forum.com/.

Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 07-18-2007, 05:50 AM
hemant
Guest
 
Posts: n/a
Default Re: Backgroundb question

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.gnufied.org

Reply With Quote
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: question about data values Frank Schiffel Newsgroup comp.soft-sys.sas 0 06-28-2005 12:01 AM
Re: question about data values toby dunn Newsgroup comp.soft-sys.sas 0 06-27-2005 11:40 PM
Re: Question about Input Control Data Set / PROC FORMAT Michael S. Zdeb Newsgroup comp.soft-sys.sas 0 06-27-2005 04:16 PM
Re: Question on Proc SQL - correct age formula Sridhar, Kumar Newsgroup comp.soft-sys.sas 0 05-24-2005 05:23 PM
Re: OT Bit Buckets (was RE: Mainframe and caps (was: A question about macro quote)) Dunn, Toby Newsgroup comp.soft-sys.sas 0 11-24-2004 01:25 PM



All times are GMT. The time now is 04:07 AM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.