feat: update worker commands to ensure continuous message consumption with retry logic

This commit is contained in:
hamed
2026-07-09 18:15:24 +03:30
parent 6587b78f48
commit 7f9ef282c0
+2 -2
View File
@@ -77,7 +77,7 @@ services:
worker-async:
image: clinicpro-app:latest
restart: unless-stopped
command: php bin/console messenger:consume async --time-limit=3600 --memory-limit=128M
command: sh -c "while :; do php bin/console messenger:consume async --time-limit=3600 --memory-limit=128M; sleep 1; done"
environment:
<<: *app-env
RUN_INIT: "0"
@@ -99,7 +99,7 @@ services:
worker-scheduler:
image: clinicpro-app:latest
restart: unless-stopped
command: php bin/console messenger:consume scheduler_default --time-limit=3600 --memory-limit=128M
command: sh -c "while :; do php bin/console messenger:consume scheduler_default --time-limit=3600 --memory-limit=128M; sleep 1; done"
environment:
<<: *app-env
RUN_INIT: "0"