You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
6
6
# run-as-root/magento2-message-queue-retry
7
7
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,
9
9
utilizing The RabbitMQ's [dead letter exchange](https://www.rabbitmq.com/dlx.html) feature.
10
10
11
11
## Table of Contents
@@ -25,7 +25,7 @@ utilizing The RabbitMQ's [dead letter exchange](https://www.rabbitmq.com/dlx.htm
25
25
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.
26
26
An example will be given in the [Configuration](#configuration) section.
27
27
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,
29
29
30
30
For example:
31
31
@@ -95,7 +95,7 @@ Is possible to configure the ACL for each action in the grid and the module conf
95
95
96
96
Two steps are necessary to configure the retry for a queue:
97
97
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
99
99
100
100
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`.
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.
182
182
183
183
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/).
0 commit comments