Skip to content
Snippets Groups Projects
Commit a9405731 authored by Gavin M. Roy's avatar Gavin M. Roy
Browse files

Add warnings about consuming from multiple queues on the same channel (#78).

parent b13e12e1
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -9,9 +9,8 @@ python:
- 3.5.1
install:
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install unittest2; fi
- pip install --upgrade -r requirements.txt
- pip install --upgrade -r test-requirements.txt
script: nosetests -v -l DEBUG --logging-level=DEBUG
script: nosetests --logging-level=DEBUG
after_success:
- codecov
- CODECLIMATE_REPO_TOKEN=ed39a2c039a29b0965bfdd243fea7caba2a83a4945bbd69fe95f506066754bd1 codeclimate-test-reporter
Loading
Loading
Loading
Loading
@@ -83,6 +83,10 @@ class Queue(base.AMQPClass):
"""Create a new Queue object instance. Only the
:class:`rabbitpy.Channel` object is required.
 
.. warning:: You should only use a single `Queue` instance per channel
when consuming or getting messages. Failure to do so can have
unintended consequences.
"""
super(Queue, self).__init__(channel, name)
 
Loading
Loading
@@ -105,6 +109,10 @@ class Queue(base.AMQPClass):
"""Quick way to consume messages using defaults of no_ack=False,
prefetch and priority not set.
 
.. warning:: You should only use a single `Queue` instance per channel
when consuming or getting messages. Failure to do so can have
unintended consequences.
:yields: rabbitpy.message.Message
 
"""
Loading
Loading
@@ -181,6 +189,10 @@ class Queue(base.AMQPClass):
 
.. versionadded:: 0.26
 
.. warning:: You should only use a single `Queue` instance per channel
when consuming or getting messages. Failure to do so can have
unintended consequences.
:param bool no_ack: Do not require acknowledgements
:param int prefetch: Set a prefetch count for the channel
:param int priority: Consumer priority
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment