Skip to content

[Messenger] Describe --keepalive option (AmazonSQS & Beanstalkd) #20604

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
Jan 28, 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
21 changes: 21 additions & 0 deletions messenger.rst
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,19 @@ command with the ``--all`` option:

The ``--all`` option was introduced in Symfony 7.1.

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.

.. note::

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

.. versionadded:: 7.2

The ``--keepalive`` option was introduced in Symfony 7.2.

.. tip::

In a development environment and if you're using the Symfony CLI tool,
Expand Down Expand Up @@ -1709,6 +1722,10 @@ The transport has a number of options:
The message time to run before it is put back in the ready queue - in
seconds.

.. versionadded:: 7.2

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

.. _messenger-redis-transport:

Redis Transport
Expand Down Expand Up @@ -2031,6 +2048,10 @@ The transport has a number of options:
FIFO queues don't support setting a delay per message, a value of ``delay: 0``
is required in the retry strategy settings.

.. versionadded:: 7.2

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

Serializing Messages
~~~~~~~~~~~~~~~~~~~~

Expand Down
Loading