Skip to content

Commit

Permalink
Retry strategy for messenger
Browse files Browse the repository at this point in the history
  • Loading branch information
cv65kr authored and jorge07 committed Jun 5, 2020
1 parent fd5c51e commit 84d822d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/packages/messenger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ framework:
messenger.bus.event.async: ~

transports:
events: "%env(MESSENGER_TRANSPORT_DSN)%"
events:
dsn: "%env(MESSENGER_TRANSPORT_DSN)%"
retry_strategy:
delay: 2000
max_retries: 5

routing:
'App\Infrastructure\Share\Bus\Event\EventInterface': events
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,17 @@ services:
depends_on:
- mysql
- rmq
- elasticsearch

workers:
image: jorge07/alpine-php:7.4.3-dev
volumes:
- .:/app
command: ['/app/bin/console', 'messenger:consume', 'events', '-vv']
depends_on:
- mysql
- rmq
- elasticsearch

mysql:
image: mysql:8.0
Expand Down

0 comments on commit 84d822d

Please sign in to comment.