Comments (5)
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.
This solved the issue for me, maybe it should be in the README
from amqp.
I added the note to the README: 1a99333
from amqp.
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.
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)
- With ruby 1.9, Queue#publish wouldn't work for multi-byte characters. HOT 8
- gemspec not valid in HEAD HOT 1
- Problems with JRuby and eventmachine >= 0.12.6 HOT 4
- stdout error msgs, unrecoverable state of client/consumer, apparent corruption of RabbitMQ database HOT 2
- Empty (zero-length) bodies are never delivered to subscribers HOT 2
- How to ensure that a single message is published? HOT 1
- Subscriptions and services falling over HOT 2
- Pops receiving Basic.GetEmpty behave unintuitively HOT 5
- CHANNEL_ERROR - unexpected method in connection state running in AMQP::Protocol::Channel::Open HOT 4
- No support for accessing server-generated Queue/Exchange names & crash with name: "" and {nowait: false} HOT 2
- Do not declare the queue if it already exist, raise an error if it exists, but has different options HOT 2
- Message count for MQ::Queue isn't reported properly, it's always 0 HOT 1
- User more AMQP-compliant terminology HOT 1
- Expose sync API for MQ#close (Channel.Close) HOT 2
- Raising an exception within AMQP HOT 1
- MQ.queue and MQ::Queue.new doco incorrect for :passive option HOT 1
- Reasonable error handling HOT 1
- Bug in MQ.reset HOT 1
- Nil pointer error in AMQP::Queue.new HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amqp.