Skip to content

Commit

Permalink
Merge pull request #37 from run-as-root/feature/#33-clean-old-messages
Browse files Browse the repository at this point in the history
[#33] - Adds a Cronjob to delete the queue error messages from the da…
  • Loading branch information
cristiano-pacheco authored Feb 2, 2024
2 parents 2c40edd + faa9d94 commit 9b3aa7d
Show file tree
Hide file tree
Showing 13 changed files with 358 additions and 95 deletions.
Binary file added .DS_Store
Binary file not shown.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ utilizing The RabbitMQ's [dead letter exchange](https://www.rabbitmq.com/dlx.htm
- [How it works](#how-it-works)
- [Configuration](#configuration)
- [Skipping the retry](#skipping-the-retry)
- [Exploring a real scenario](#exploring-a-real-scenario)
- [License](#licence)

---
Expand Down Expand Up @@ -203,6 +204,10 @@ System > Configuration > RUN-AS-ROOT > Message Queue Retry

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

**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.

The `run_as_root_clean_old_queue_error_messages` cron job is scheduled to run every day at 02:00 AM.

---

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

---

## Exploring a real scenario

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.

---

## License
[MIT](https://opensource.org/licenses/MIT)
Loading

0 comments on commit 9b3aa7d

Please sign in to comment.