Skip to content

Commit

Permalink
minor #19699 [Messenger] Messenger: custom consumer name with systemd…
Browse files Browse the repository at this point in the history
… (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
  • Loading branch information
javiereguiluz committed Feb 3, 2025
2 parents 6d9da13 + dd69e53 commit a9fb4d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions messenger.rst
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,8 @@ directory. For example, you can create a new ``messenger-worker.service`` file.
[Service]
ExecStart=php /path/to/your/app/bin/console messenger:consume async --time-limit=3600
# For Redis, set a custom consumer name for each instance
Environment="MESSENGER_CONSUMER_NAME=symfony-%n-%i"
Restart=always
RestartSec=30
Expand Down

0 comments on commit a9fb4d5

Please sign in to comment.