Skip to content

Commit

Permalink
ensure PlacedOrderMessage is re-enqueued when an error occurs
Browse files Browse the repository at this point in the history
- set retry_strategy so the message is re-enqueued 5 times - after 1, 5, 25, 125, and 625 minutes
- see https://symfony.com/doc/current/messenger.html#retries-failures
  • Loading branch information
vitek-rostislav committed Dec 13, 2023
1 parent eb07e2d commit 0ad3f81
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/config/packages/messenger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ framework:
type: direct
queues:
placed_orders: ~
retry_strategy:
max_retries: 5
delay: 60000
multiplier: 5

routing:
Shopsys\FrameworkBundle\Component\Messenger\ExampleMessage: example_transport
Expand Down

0 comments on commit 0ad3f81

Please sign in to comment.