[Backgroundrb-devel] lost connection 2.0

hemant gethemant at gmail.com
Sat Dec 29 11:09:41 EST 2007

Hi Joost,

On Dec 28, 2007 5:25 PM, Joost Hietbrink (YelloYello)
<joost at yelloyello.com> wrote:
>  The rails_model_worker.rb contains a module that fetches an object from the
> database.
>  We pass parameters to the worker (like classname & id (eg. Place and
> 12312)) and fetch the object again in the worker (using this module method).
>  The lost connection occurs when we try to fetch the object (record) again
> (in the worker..using the included module method).
>  The old BackgroundRb did not support sending ActiveRecord objects to the
> worker (thats why we refetch it)..does the new version??
>  We now also installed libmysql-ruby1.8 (see:
> http://wiki.rubyonrails.org/rails/pages/Mysql%2BConnection%2BProblems) so
> maybe this fixes the problem..but we have to wait some time to see.. :)

Sorry for late reply. But If you can send me the worker code, I will
try to fix it.
There seems to be some problems with AR in threaded environment. I
just want to make sure, none remain unfixed.

Let them talk of their oriental summer climes of everlasting
conservatories; give me the privilege of making my own summer with my
own coals.


More information about the Backgroundrb-devel mailing list