feat: update worker commands to ensure continuous message consumption with retry logic
This commit is contained in:
+2
-2
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user