File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -1776,7 +1776,20 @@ under the transport in ``messenger.yaml``:
1776
1776
The Redis consumer group name
1777
1777
1778
1778
``consumer `` (default: ``consumer ``)
1779
- Consumer name used in Redis
1779
+ Consumer name used in Redis. Allows setting an explicit consumer name identifier.
1780
+ Recommended in environments with multiple workers to prevent duplicate message
1781
+ processing. Typically set via an environment variable:
1782
+
1783
+ .. code-block :: yaml
1784
+
1785
+ # config/packages/messenger.yaml
1786
+ framework :
1787
+ messenger :
1788
+ transports :
1789
+ redis :
1790
+ dsn : ' %env(MESSENGER_TRANSPORT_DSN)%'
1791
+ options :
1792
+ consumer : ' %env(MESSENGER_CONSUMER_NAME)%'
1780
1793
1781
1794
``auto_setup `` (default: ``true ``)
1782
1795
Whether to create the Redis group automatically
You can’t perform that action at this time.
0 commit comments