diff --git a/ruby/lib/jam_ruby/resque/resque_hooks.rb b/ruby/lib/jam_ruby/resque/resque_hooks.rb index 123bd333b..e58298569 100644 --- a/ruby/lib/jam_ruby/resque/resque_hooks.rb +++ b/ruby/lib/jam_ruby/resque/resque_hooks.rb @@ -11,7 +11,10 @@ def shutdown end Resque.before_first_fork do - JamWebEventMachine.start + current = Thread.current + Thread.new do + JamWebEventMachine.run_em(current) + end #ActiveRecord::Base.establish_connection config = {