From dd69e53bdb7287a8a8920129de11273920add5e8 Mon Sep 17 00:00:00 2001 From: Lorenzo Milesi Date: Fri, 22 Mar 2024 17:43:31 +0100 Subject: [PATCH 1/2] Messenger: custom consumer name with systemd --- messenger.rst | 2 ++ 1 file changed, 2 insertions(+) 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 From 26b7fc02b3b3f99afb379886bd0a69d1f72e93ac Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Mon, 3 Feb 2025 13:36:27 +0100 Subject: [PATCH 2/2] Minor tweak --- messenger.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/messenger.rst b/messenger.rst index 8cc17a5772e..70154ab82ca 100644 --- a/messenger.rst +++ b/messenger.rst @@ -814,7 +814,7 @@ 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 + # for Redis, set a custom consumer name for each instance Environment="MESSENGER_CONSUMER_NAME=symfony-%n-%i" Restart=always RestartSec=30