Skip to content
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

[Messenger] Update docs for keepalive support in doctrine messenger transport #20607

Merged
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
16 changes: 14 additions & 2 deletions messenger.rst
Original file line number Diff line number Diff line change
@@ -545,12 +545,16 @@ command with the ``--all`` option:

The ``--keepalive`` option can be used to prevent messages from being prematurely
redelivered during long-running processing. It marks the message as "in progress"
and prevents it from being redelivered until the worker finishes processing it.
and prevents it from being redelivered until the worker finishes processing it:

.. code-block:: terminal

php bin/console messenger:consume --keepalive=5

.. note::

This option is only available for supported transports, which are
the Beanstalkd and AmazonSQS transports.
the Doctrine, Beanstalkd and AmazonSQS transports.

.. versionadded:: 7.2

@@ -1689,6 +1693,14 @@ in the table.
The length of time to wait for a response when calling
``PDO::pgsqlGetNotify``, in milliseconds.

The keepalive feature, which prevents messages from being prematurely redelivered during
long-running processing, updates the ``delivered_at`` timestamp periodically to ensure
the message is marked as "in progress".

.. versionadded:: 7.3

Keepalive support, using the ``--keepalive`` option, was added in Symfony 7.3.

Beanstalkd Transport
~~~~~~~~~~~~~~~~~~~~