Coder Social home page Coder Social logo

eventmachine not initialized in thin about amqp HOT 5 CLOSED

tmm1 avatar tmm1 commented on September 27, 2024
eventmachine not initialized in thin

from amqp.

Comments (5)

tmm1 avatar tmm1 commented on September 27, 2024

Thin is probably started later, once rails boots up.

You can use EM.next_tick so the connect happens on the first tick of the reactor when it is started.

EM.next_tick{ AMQP.connect(...) }

from amqp.

skrat avatar skrat commented on September 27, 2024

This solved the issue for me, maybe it should be in the README

from amqp.

botanicus avatar botanicus commented on September 27, 2024

I added the note to the README: 1a99333

from amqp.

kulpreet avatar kulpreet commented on September 27, 2024

Thanks for a great gem.

Had to do gem 'amqp', :require => 'mq' in Gemfile as per http://groups.google.com/group/ruby-amqp/browse_thread/thread/408564eb31f44f17

Might be handy to also include in the README when you talk about using the next_tick.

Thanks again

from amqp.

botanicus avatar botanicus commented on September 27, 2024

Hi, please do not use this repository anymore, the new official one is at http://github.com/ruby-amqp/amqp BTW we are just changing the API, so you shan't need require: "mq" anymore, see https://github.com/ruby-amqp/amqp/blob/master/lib/amqp.rb It'll be part of the upcoming 0.8 release.

from amqp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.