Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Messenger] Add option to prevent Redis from deleting messages on rejection#36727
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
nicolas-grekas commentedMay 8, 2020
Then there is going to be zero different between calling reject() and calling ack(). This looks suspicious to me. |
soyuka commentedMay 20, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Maybe that introducing a new |
Steveb-p commentedMay 21, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Whoops, missed the comment. Pretty much yes, rejection and acknowledgement becomes undistinguishable. From my point of view, acknowledgement means "Yup, I've seen this message and I've handled it". Whether it was rejected or handled ok is not possible to pass to Redis as there is no This is similar to how Kafka handles messages, which is what Redis streams are based on conceptually. It is simply a structured log that you go through, acknowledging messages as they come (meaning, "I've read it"). https://redis.io/topics/streams-intro
As you can see in the original,
( |
Steveb-p commentedMay 26, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@sroze could you give your opinion on this if you have some spare time? I'd like to adjust the PR to match. Does this need some tests to be added, or will it be good as-is, even with new configuration property EDIT: Also, what EDIT2: I rebased the PR to the current |
src/Symfony/Component/Messenger/Bridge/Redis/Transport/Connection.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
chalasr left a comment
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.
chalasr commentedJun 22, 2020
Looks good to me, but I'm not sure this qualifies as a bugfix given it introduces a new option (and thus requires code changes). |
fabpot commentedJun 22, 2020
I agree with@chalasr, this should target 5.2 (aka master). |
Steveb-p commentedJun 22, 2020
src/Symfony/Component/Messenger/Bridge/Redis/Transport/Connection.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
fabpot commentedSep 4, 2020
Thank you@Steveb-p. |
Uh oh!
There was an error while loading.Please reload this page.
Unlessdelete_after_ackconfiguration is set totrue.Introduces
delete_after_rejectconfiguration property.noyes (introduces config property)