fix: resolve messenger worker OOM by clearing EntityManager and disabling debug

Clear Doctrine identity map after each film import to prevent memory
accumulation. Run messenger with --no-debug and higher PHP memory_limit
to avoid profiling overhead in dev.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
thibaud-leclere
2026-03-31 21:34:11 +02:00
parent 6a844542ad
commit a37ac1debd
3 changed files with 12 additions and 22 deletions

View File

@@ -11,6 +11,11 @@ services:
ports:
- "${PORT_80:-80}:80"
messenger:
command: ["php", "-d", "memory_limit=512M", "bin/console", "messenger:consume", "async", "--time-limit=3600", "--memory-limit=256M", "-vv", "--no-debug"]
volumes:
- .:/app
database:
ports:
- "0.0.0.0:5432:5432"