8000 Forgotten ack box for python/2 · ikulis/rabbitmq-tutorials@e597bd3 · GitHub
[go: up one dir, main page]

Skip to content

Commit e597bd3

Browse files
committed
Forgotten ack box for python/2
1 parent 08920f4 commit e597bd3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

python/tutorial-two.mdx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,21 @@ Using that code we may be sure that even if you kill a worker using
156156
CTRL+C while it was processing a message, it will won't be lost. Soon
157157
after the worker dies all unacknowledged messages will be redispatched.
158158

159+
> #### Forgotten acknowledgment
160+
>
161+
> It's a pretty common mistake to miss `basic_ack`. It's an easy error,
162+
> but the consequences are serious. Messages will be redelivered
163+
> when your client quits (which may look like random redelivery),
164+
> Rabbit will eat more and more memory as it won't be able to release
165+
> any unacked messages.
166+
>
167+
> In order to debug this kind of mistakes you may use `rabbitmqctl`
168+
> to print `messages_unacknowledged` field:
169+
>
170+
> $ sudo rabbitmqctl list_queues name messages_ready messages_unacknowledged
171+
> Listing queues ...
172+
> test 0 0
173+
> ...done.
159174

160175
Message durability
161176
------------------

0 commit comments

Comments
 (0)
0