igrigorik / em-synchrony

Fiber aware EventMachine clients and convenience classes

Home Page:http://www.igvita.com/2010/03/22/untangling-evented-code-with-ruby-fibers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

devise in combination with em-mysql2

BobClaerhout opened this issue · comments

I've managed to get em-mysql2 working for one of my databases (to get async active record). This is a seperate database.
However, when I want to use em-mysql2 for my main database, the devise gem fails.
I get following example: "could not yield from root fiber".
Anyone has a solution for this?
Thx in advance

Hard to say. If you're running on the same server (with fiber-pool, or on Goliath, etc), then it means it's something within Devise itself that may need to be patched.

Yes, I'm running on the same server (thin). Does anyone has run into the same problem?

You might be better off asking on devise issue tracker (or mailing list).

I did that, for those who are looking for a possible solution: this is a link to the issue: heartcombo/devise#2276

In the referend issue, I added more information about the problem.
There is a chance that you know the answer to this, so it would be nice if you read this post as well.
Thanks in advance