Skip to content

Commit 83a5ad8

Browse files
authored
Messenger: custom consumer name with systemd
1 parent c81e2c6 commit 83a5ad8

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
@@ -797,6 +797,8 @@ directory. For example, you can create a new ``messenger-worker.service`` file.
797797
798798
[Service]
799799
ExecStart=php /path/to/your/app/bin/console messenger:consume async --time-limit=3600
800+
# For Redis, set a custom consumer name for each instance
801+
Environment="MESSENGER_CONSUMER_NAME=symfony-%n-%i"
800802
Restart=always
801803
RestartSec=30
802804

0 commit comments

Comments
 (0)