Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b485a8d

Browse files
committed
feature #12976 Added redeliver_timeout and claim_interval options (toooni)
This PR was submitted for the master branch but it was squashed and merged into the 5.1 branch instead. Discussion ---------- Added redeliver_timeout and claim_interval options Adds new optional config parameters introduced by symfony/symfony#35384 Commits ------- 8fe20c3 Added redeliver_timeout and claim_interval options
2 parents 00abcd2 + 8fe20c3 commit b485a8d

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

messenger.rst

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,9 +1038,9 @@ a running Redis server (^5.0).
10381038
A number of options can be configured via the DSN or via the ``options`` key
10391039
under the transport in ``messenger.yaml``:
10401040

1041-
================== ===================================== =========================
1042-
Option Description Default
1043-
================== ===================================== =========================
1041+
=================== ===================================== =================================
1042+
Option Description Default
1043+
=================== ===================================== =================================
10441044
stream The Redis stream name messages
10451045
group The Redis consumer group name symfony
10461046
consumer Consumer name used in Redis consumer
@@ -1056,7 +1056,23 @@ stream_max_entries The maximum number of entries which ``0`` (which means "n
10561056
it to a large enough number to
10571057
avoid losing pending messages
10581058
tls Enable TLS support for the connection false
1059-
================== ===================================== =========================
1059+
redeliver_timeout Timeout before retrying a pending ``3600``
1060+
message which is owned by an
1061+
abandoned consumer (if a worker died
1062+
for some reason, this will occur,
1063+
eventually you should retry the
1064+
message) - in seconds.
1065+
claim_interval Interval on which pending/abandoned ``60000`` (1 Minute)
1066+
messages should be checked for to
1067+
claim - in milliseconds
1068+
=================== ===================================== =================================
1069+
1070+
.. caution::
1071+
1072+
There should never be more than one `messenger:consume` command running with the same
1073+
config (stream, group and consumer name) to avoid having a message handled more than once.
1074+
Using the ``HOSTNAME`` as the consumer might often be a good idea. In case you are using
1075+
Kubernetes to orchestrate your containers, consider using a ``StatefulSet``.
10601076

10611077
.. tip::
10621078

0 commit comments

Comments
 (0)