Skip to content

Commit faa9d94

Browse files
[#33] - Adds a Cronjob to delete the queue error messages from the database after a configirable period in days
1 parent 2c40edd commit faa9d94

13 files changed

+358
-95
lines changed

.DS_Store

6 KB
Binary file not shown.

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ utilizing The RabbitMQ's [dead letter exchange](https://www.rabbitmq.com/dlx.htm
1515
- [How it works](#how-it-works)
1616
- [Configuration](#configuration)
1717
- [Skipping the retry](#skipping-the-retry)
18+
- [Exploring a real scenario](#exploring-a-real-scenario)
1819
- [License](#licence)
1920

2021
---
@@ -203,6 +204,10 @@ System > Configuration > RUN-AS-ROOT > Message Queue Retry
203204

204205
![img.png](docs/module-configuration.png)
205206

207+
**Note:** The configuration `Total of days to keep the messages` is the period that the messages will stay in the database. After this period, the messages will be deleted automatically by a Cron job.
208+
209+
The `run_as_root_clean_old_queue_error_messages` cron job is scheduled to run every day at 02:00 AM.
210+
206211
---
207212

208213
### Skipping the retry
@@ -219,5 +224,11 @@ For more information of how to configure message queues in Magento 2, you can ta
219224

220225
---
221226

227+
## Exploring a real scenario
228+
229+
If you want to know more about this module and explore a real scenario with it, please, take a look at the [blog post](https://dev.to/run_as_root/preventing-transaction-loss-unleashing-the-power-of-resilient-transactions-with-rabbitmq-dead-letter-exchanges-in-magento-2-8h0) we wrote about it.
230+
231+
---
232+
222233
## License
223234
[MIT](https://opensource.org/licenses/MIT)

0 commit comments

Comments
 (0)