-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Console][Messenger] Add $seconds
to keepalive()
methods
#58552
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
Conversation
$seconds
to keepalive()
methods$seconds
to keepalive()
methods
57185ca
to
e3beb18
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The component changelog needs to mention the new method
src/Symfony/Component/Messenger/Transport/Receiver/KeepaliveReceiverInterface.php
Show resolved
Hide resolved
As this whole feature is not released yet, I thought the changes here would be covered by the initial changelog entries about adding keepalive / alarm support since from component user perspective it's a single new feature – but ok, I will add those. 👍 |
Thank you @valtzu. |
Make the transport aware for how long (at minimum) the message should be kept alive.
F.e. when extending SQS visibility timeout, you need to pass the visibility timeout (seconds) as parameter. If you pass a value which is less than alarm interval, SQS would resend the message too early. By making the transport aware of when the next keepalive call will happen we'll be able to do some assertions/clamping to improve DX.
This is a prerequisite for #58483.