Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a9fb4d5

Browse filesBrowse files
committed
minor #19699 [Messenger] Messenger: custom consumer name with systemd (maxxer)
This PR was submitted for the 7.0 branch but it was merged into the 6.4 branch instead. Discussion ---------- [Messenger] Messenger: custom consumer name with systemd <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `7.x` for features of unreleased versions). --> Commits ------- dd69e53 Messenger: custom consumer name with systemd
2 parents 6d9da13 + dd69e53 commit a9fb4d5
Copy full SHA for a9fb4d5

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed

‎messenger.rst

Copy file name to clipboardExpand all lines: messenger.rst
+2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.