Skip to content

[Messenger] Add Beanstalkd's bury_on_reject option #20737

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions messenger.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1775,8 +1775,13 @@

The transport has a number of options:

``tube_name`` (default: ``default``)
Name of the queue
``bury_on_reject`` (default: ``false``)
When set to ``true``, rejected messages are placed into a "buried" state
in Beanstalkd instead of being deleted.

.. versionadded:: 7.3

The ``bury_on_reject`` option was introduced in Symfony 7.3.

``timeout`` (default: ``0``)
Message reservation timeout - in seconds. 0 will cause the server to
Expand All @@ -1786,6 +1791,9 @@
The message time to run before it is put back in the ready queue - in
seconds.

``tube_name`` (default: ``default``)
Name of the queue

The Beanstalkd transport supports the ``--keepalive`` option by using Beanstalkd's
``touch`` command to periodically reset the job's ``ttr``.

Expand All @@ -1794,7 +1802,7 @@
Keepalive support was introduced in Symfony 7.2.

The Beanstalkd transport lets you set the priority of the messages being dispatched.
Use the :class:``Symfony\\Component\\Messenger\\Bridge\\Beanstalkd\\Transport\\BeanstalkdPriorityStamp``

Check failure on line 1805 in messenger.rst

View workflow job for this annotation

GitHub Actions / Lint (DOCtor-RST)

Please use 1 backslash when highlighting a namespace with double backticks: ``Symfony\\Component\\Messenger\\Bridge\\Beanstalkd\\Transport\\BeanstalkdPriorityStamp``
and pass a number to specify the priority (default = ``1024``; lower numbers mean higher priority)::

use App\Message\SomeMessage;
Expand Down
Loading