Update messenger consumer shell command for preserved environment variables
Replaced `su` with `su -p` in `compose.yaml` to ensure the environment variables of the parent shell are preserved when running the messenger consumer.
This commit is contained in:
@@ -73,7 +73,7 @@ services:
|
|||||||
sleep 3 && bin/console cache:clear &&
|
sleep 3 && bin/console cache:clear &&
|
||||||
while ! [ -f /tmp/kill_me ];
|
while ! [ -f /tmp/kill_me ];
|
||||||
do
|
do
|
||||||
su -s /bin/bash -c 'php -d memory_limit=2G bin/console messenger:consume priority async --limit=20 --time-limit=600 -v' "www-data";
|
su -p -s /bin/bash -c 'php -d memory_limit=2G bin/console messenger:consume priority async --limit=20 --time-limit=600 -v' "www-data";
|
||||||
done;
|
done;
|
||||||
pre_stop:
|
pre_stop:
|
||||||
- command:
|
- command:
|
||||||
|
|||||||
@@ -18,4 +18,4 @@ framework:
|
|||||||
priority: 'doctrine://default'
|
priority: 'doctrine://default'
|
||||||
{% endif +%}
|
{% endif +%}
|
||||||
failed: 'doctrine://default?queue_name=failed'
|
failed: 'doctrine://default?queue_name=failed'
|
||||||
sync: 'sync://'
|
sync: 'sync://'
|
||||||
|
|||||||
Reference in New Issue
Block a user