mirror of https://github.com/celery/kombu.git
Include requeue=False when rejecting a message
This commit is contained in:
parent
0cd4e6832f
commit
0e35cec74f
|
@ -74,7 +74,7 @@ class Message(object):
|
||||||
if self.acknowledged:
|
if self.acknowledged:
|
||||||
raise self.MessageStateError(
|
raise self.MessageStateError(
|
||||||
"Message already acknowledged with state: %s" % self._state)
|
"Message already acknowledged with state: %s" % self._state)
|
||||||
self.channel.basic_reject(self.delivery_tag)
|
self.channel.basic_reject(self.delivery_tag, requeue=False)
|
||||||
self._state = "REJECTED"
|
self._state = "REJECTED"
|
||||||
|
|
||||||
def requeue(self):
|
def requeue(self):
|
||||||
|
|
Loading…
Reference in New Issue