diff --git a/messenger.rst b/messenger.rst index d1f215f16a3..8cc17a5772e 100644 --- a/messenger.rst +++ b/messenger.rst @@ -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