[Backgroundrb-devel] Cannot invoke ActiveRecord subclass accessors in DRb worker

Ezra Zygmuntowicz ezmobius at gmail.com
Thu Jun 15 10:55:10 EDT 2006

On Jun 15, 2006, at 5:42 AM, dorian taylor wrote:

> Hi there,
> I'm trying to create a worker to do some asynchronous web client work
> and update the data model with its results. It seems, however, that
> every call I make to an ActiveRecord subclass causes the whole thing
> to block. At least I think it's blocked. Right now I'm just using
> debug log output.
> Is there a decent way to debug/test workers I can try?
> Is there any insight as to why this might be happening (thread safety
> issues, etc)?
> Cheers
> Dorian
> _______________________________________________
> Backgroundrb-devel mailing list
> Backgroundrb-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/backgroundrb-devel


	Can you show me an example of your worker? You can shave it down to  
just the problem area. I will try to reproduce the problem and get  
back to you with an answer.

	But yeah threads can be hard to debug. But each worker does run in  
it's own thread and I have tested workers that use activerecord  
models by starting a bunch of them at once and they did not block and  
performed as they should. But I am interested to find any problems  
and fix them so please give a concrete example.


More information about the Backgroundrb-devel mailing list