--
You received this message because you are subscribed to the Hallon ruby gem mailing list.
- To view this group online, visit https://groups.google.com/d/forum/ruby-hallon
- To post to this group, send email to ruby-...@googlegroups.com
- To unsubscribe from this group, send email to ruby-hallon...@googlegroups.com
I was that one :) . That made it work on Webrick, but it fails to work with passenger.
Resque.after_fork do |job|unless Hallon::Session.instance?
On Friday, 18 January 2013 at 14:32, Aurélien Malisart via Hallon wrote:
Hey,I confirm that it works great with Sidekiq which does use threads instead of forked sub-processes. I'm lucky that it can work alongside Resque ;-)
--
Glad to see it works for you. :)
Resque.after_fork do |job|unless Hallon::Session.instance?Hallon::Session.instance? should never return true in this case. If it does, it means you alreadyhave a session somehow, which you shouldn’t. There should only be one session per fork.