8000 Improvements · liborange/rabbitmq-tutorials@b45ca3b · GitHub
[go: up one dir, main page]

Skip to content

Commit b45ca3b

Browse files
committed
Improvements
1 parent 3b0733e commit b45ca3b

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

python/tutorial-one.mdx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,17 @@ in our previous code. We could have avoided that if we always run the
262262
program to run as first. In such case it's a good practice to repeat
263263
declaring the queue in both programs.
264264

265+
> #### Listing queues
266+
>
267+
> Sometimes you may want to see what queues does RabbitMQ store and how many
268+
> messages are in them. You can do it using the `rabbitmqctl` tool:
269+
>
270+
> $ sudo rabbitmqctl list_queues
271+
> Listing queues ...
272+
> test 0
273+
> ...done.
274+
275+
265276

266277
Receiving messages from the queue is a bit more complex. Whenever we receive
267278
a message, a `callback` function is called. In our case

python/tutorial-two.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ digraph G {
1717

1818

1919
In the first part of this tutorial we've learned how to send messages
20-
to and receive from a named queue. In this part we'll try to create a
20+
to and receive from a named queue. In this part we'll create a
2121
_Task Queue_ to distribute time-consuming work across multiple
2222
workers.
2323

0 commit comments

Comments
 (0)
0