[Backgroundrb-devel] Too many clients already
todd at snappl.co.uk
Mon Aug 11 07:45:43 EDT 2008
> We get this error when running the test several times in a row. It
> could be that our test is not properly closing the connection to
> backgroundrb. The test reports that the error occurs in the
> before(:all) block in an RSpec.
> Thanks for your help!
> Hi Dan,
I'm a bit late to the party on this one, and I'm afraid I can't get in to
pastie at the moment, but I've just had a similar-sounding problem myself.
If you're doing anything with the model in your worker the error is probably
caused by the sql connection not being released when the thread is
complete. Try adding:
to the end of your worker method (and/or upping the number of concurrent
connections available on whatever sql server you are using).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Backgroundrb-devel