Skip to content

Async Symfony Messenger #681

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
17 changes: 14 additions & 3 deletions docs/symfony-messenger.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,22 @@ To add additional workers just copy `php-worker-async` service and replace every
Add new service to the `compose.prod.yaml`:
```yaml
php-worker:
profiles:
- donotstart

php-worker-async:
scale: 2
extends:
file: compose.yaml
service: php-worker
image: ${IMAGES_PREFIX:-}app-php-worker-async
build:
context: .
target: frankenphp_prod
environment:
APP_SECRET: ${APP_SECRET}
target: frankenphp_dev
command: ['/app/bin/console', 'messenger:consume', 'async', '-vv', '--time-limit=60', '--limit=10', '--memory-limit=128M']
depends_on:
php:
condition: service_healthy
```

Apply the following changes to the `frankenphp/docker-entrypoint.sh`:
Expand Down