[Backgroundrb-devel] where do uncaught exceptions printouts go?

Jim Morris ml at e4net.com
Wed Jul 12 18:50:31 EDT 2006


Ok, actually another way which works is...

 > script/plugin install --force svn://rubyforge.org//var/svn/backgroundrb

This re-installed and I now get the exception dump in the log, thanks.

Ezra Zygmuntowicz wrote:
> Jim-
> 
>     I don't think the script/plugin will find this plugin because of the 
> way it works. You will have to either cd into 
> vendor/plugins/backgroundrb and do an svn up or do a fresh svn co of the 
> plugin and put it in vendor/plugins.
> 
> Cheers-
> -Ezra
> 
> 
> On Jul 12, 2006, at 3:36 PM, Jim Morris wrote:
> 
>> Was this update checked into rubyforge, because script/plugin update 
>> says the plugin doesn't exist?
>>
>> Ezra Zygmuntowicz wrote:
>>>     Ok, I just committed an update to the plugin. I fixed exception
>>> handling so if your workers throw an error the full error message,
>>> class of error and complete backtrace will get printed to the log
>>> file. Sorry about the hassle finding this bug. It happened when I
>>> added the job canceling and handling code. I forgot to put the begin
>>> rescue end block inside of the Thread.new block. Its all fixed now.
>>>
>>>     I also added Michael Klien's accessed based timestamps patch. It
>>> doesn't change the external interface to how you use things but it
>>> changes the way timestamps are stored. Now timestamps are stored as a
>>> hash of attributes instead of an array. This allows workers expiry to
>>> act like sessions in that the time to live will be updated evey time
>>> a worker is accessed. So it will update the timestamp when it gets
>>> accessed and push the time to live forward again. This allows the
>>> worker to expire based on time to live since the worker was last
>>> accessed. So this worker will expire 300 seconds after the last time
>>> it was accessed.
>>>
>>> session[:job_key] = MiddleMan.new_worker(:class => :foo_worker,
>>>
>>>            :args => "Bar",
>>>
>>>            :ttl => 300,
>>>
>>>            :expire_type => :accessed )
>>>
>>>
>>>     I also added a CONTRIBUTORS file to the plugin. Please have a look
>>> and remind me if I missed anyone who had a patch or enhancement applied.
>>>
>>>     I am in the process of adding breakpoint support to the plugin so
>>> you can set breakpoints and inspect your workers and other state.
>>> Along with this will be a small stats system so you can get stats
>>> about all your running workers and timestamps and what the drb server
>>> is working on. Should have this stuff done this week some time.
>>>
>>>
>>> Cheers-
>>> -Ezra
>>>
>>> PS. Thanks everyone for using and abusing this to help ferret out any
>>> bugs and missing features. This is a fun plugin to work on and with
>>> and I think it will only get better.
>>> _______________________________________________
>>> Backgroundrb-devel mailing list
>>> Backgroundrb-devel at rubyforge.org
>>> http://rubyforge.org/mailman/listinfo/backgroundrb-devel
>>>
>>
>> --Jim Morris, http://blog.wolfman.com
>> _______________________________________________
>> Backgroundrb-devel mailing list
>> Backgroundrb-devel at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/backgroundrb-devel
>>
> 
> 

-- 
Jim Morris, http://blog.wolfman.com


More information about the Backgroundrb-devel mailing list