From 3f18e9c54927d4976116207078d57fd242efb1df Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Thu, 3 Nov 2011 20:49:06 +0000 Subject: [PATCH] Quick overview should declare the queue before publishing to it --- README.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.rst b/README.rst index 287d4eed..c8a6f76f 100644 --- a/README.rst +++ b/README.rst @@ -127,6 +127,11 @@ Quick overview # connections with BrokerConnection("amqp://guest:guest@localhost//") as conn: + # Declare the video queue so that the messages can be delivered. + # It is a best practice in Kombu to have both publishers and + # consmers declare the queue. + video_queue(channel).declare() + # produce with conn.Producer(exchange=media_exchange, serializer="json", routing_key="video") as producer: