Skip to content

Commit dd69e53

Browse files
maxxerjaviereguiluz
authored andcommitted
Messenger: custom consumer name with systemd
1 parent 6d9da13 commit dd69e53

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
@@ -814,6 +814,8 @@ directory. For example, you can create a new ``messenger-worker.service`` file.
814814
815815
[Service]
816816
ExecStart=php /path/to/your/app/bin/console messenger:consume async --time-limit=3600
817+
# For Redis, set a custom consumer name for each instance
818+
Environment="MESSENGER_CONSUMER_NAME=symfony-%n-%i"
817819
Restart=always
818820
RestartSec=30
819821

0 commit comments

Comments
 (0)