Skip to content

Commit 0f87d7d

Browse files
committed
Merge branch '6.4' into 7.2
* 6.4: Minor tweak Messenger: custom consumer name with systemd
2 parents 2af761d + 26b7fc0 commit 0f87d7d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

messenger.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,8 @@ directory. For example, you can create a new ``messenger-worker.service`` file.
876876
877877
[Service]
878878
ExecStart=php /path/to/your/app/bin/console messenger:consume async --time-limit=3600
879+
# for Redis, set a custom consumer name for each instance
880+
Environment="MESSENGER_CONSUMER_NAME=symfony-%n-%i"
879881
Restart=always
880882
RestartSec=30
881883

0 commit comments

Comments
 (0)