Skip to content

Commit 9a3ac6d

Browse files
VladyslavSikailovladyslav-sikailo-run-as-rootCristiano Pacheco
authored
add important note about infinity retrying (#14)
* add an important note about infinity retrying Co-authored-by: Cristiano Pacheco <chris.spb25@gmail.com> --------- Co-authored-by: Vladyslav Sikailo <vladyslav.sikailo@run-as-root.sh> Co-authored-by: Cristiano Pacheco <cristiano.pacheco@run-as-root.sh>
1 parent 11d0a95 commit 9a3ac6d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# run-as-root/magento2-message-queue-retry
77

8-
It gives the possibility to process the same queue message more than once,
8+
It gives the possibility to process the same queue message more than once,
99
utilizing The RabbitMQ's [dead letter exchange](https://www.rabbitmq.com/dlx.html) feature.
1010

1111
## Table of Contents
@@ -25,7 +25,7 @@ utilizing The RabbitMQ's [dead letter exchange](https://www.rabbitmq.com/dlx.htm
2525
To be able to use this module, you have to manually configure the dead letter exchange(s) for the queue(s) you want to enable the retry mechanismm through the `queue_topology.xml` file.
2626
An example will be given in the [Configuration](#configuration) section.
2727

28-
Other requisite is that your exchanges have to have a relation from one exchange to only one topic and queue,
28+
Other requisite is that your exchanges have to have a relation from one exchange to only one topic and queue,
2929

3030
For example:
3131

@@ -95,7 +95,7 @@ Is possible to configure the ACL for each action in the grid and the module conf
9595

9696
Two steps are necessary to configure the retry for a queue:
9797
1. Configure the dead letter exchange
98-
1. Enable the message queue retry and delclare the retry limit configuration
98+
2. Enable the message queue retry and declare the retry limit configuration
9999

100100
Let's imagine a scenario that the `erp_order_export` queue already exists in your project and to simplify the example the topic name, exchange name and queue name are the same: `erp_order_export`.
101101

@@ -178,7 +178,7 @@ System > Configuration > RUN-AS-ROOT > Message Queue Retry
178178

179179
![img.png](docs/configuration.png)
180180

181-
Note that if the queue is not declared in the configuration it will the default Magento consumer behavior.
181+
**Important note:** Make sure to configure the retry limit of your queue in the module configuration. If you configure the dead letter exchange and do not set the retry limit in the configuration(System > Configuration > RUN-AS-ROOT > Message Queue Retry), the message will be in a retry loop, that is, execute until the consumer process the message without throwing an exception. This is the default behavior for the RabbitMQ dead letter exchange and will work this way even if this module is not installed.
182182

183183
For more information of how to configure message queues in Magento 2, you can take a look [here](https://developer.adobe.com/commerce/php/development/components/message-queues/configuration/).
184184

0 commit comments

Comments
 (0)