From 7f9ef282c0546bccbace7d75fe3f36490965923b Mon Sep 17 00:00:00 2001 From: hamed <15238-genius.ha@users.noreply.drupalcode.org> Date: Thu, 9 Jul 2026 18:15:24 +0330 Subject: [PATCH] feat: update worker commands to ensure continuous message consumption with retry logic --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 2d52b815..73eac13e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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"