Skip to content

Commit c69676a

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: Minor tweak Messenger: custom consumer name with systemd
2 parents 1f9e998 + 0f87d7d commit c69676a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

messenger.rst

+2
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,8 @@ directory. For example, you can create a new ``messenger-worker.service`` file.
880880
881881
[Service]
882882
ExecStart=php /path/to/your/app/bin/console messenger:consume async --time-limit=3600
883+
# for Redis, set a custom consumer name for each instance
884+
Environment="MESSENGER_CONSUMER_NAME=symfony-%n-%i"
883885
Restart=always
884886
RestartSec=30
885887

0 commit comments

Comments
 (0)