Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
[Messenger] InMemoryTransport ignore acknowledged and rejected messages#12045
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
Merged
OskarStark merged 1 commit intosymfony:4.4fromtienvx:handle-acknowledged-rejected-messagesAug 20, 2019
Merged
[Messenger] InMemoryTransport ignore acknowledged and rejected messages#12045
OskarStark merged 1 commit intosymfony:4.4fromtienvx:handle-acknowledged-rejected-messagesAug 20, 2019
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
fabpot added a commit to symfony/symfony that referenced this pull requestAug 18, 2019
…rejected messages (tienvx)This PR was merged into the 4.4 branch.Discussion----------[Messenger] InMemoryTransport handle acknowledged and rejected messages| Q | A| ------------- | ---| Branch? | 4.4 <!-- see below -->| Bug fix? | no| New feature? | yes <!-- please update src/**/CHANGELOG.md files -->| BC breaks? | no <!-- seehttps://symfony.com/bc -->| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tests pass? | yes <!-- please add some, will be required by reviewers -->| Fixed tickets | #... <!-- #-prefixed issue number(s), if any -->| License | MIT| Doc PR |symfony/symfony-docs/pull/12045 <!-- required for new features -->This PR do 2 things:* Limit receiving messages from InMemoryTransport to 1 (reverted, another PR will fix the bug: worker does not stop when receiver return more messages than the number specify by the `--limit` option)* Handle acknowledged and rejected messages in InMemoryTransport. Currently, it does not care about acknowledged and rejected messages. So it always return all messages that have been sent. So if we run console command `messenger:consume`, it will never stop, even though we set the `--limit` option.For more information, please check the [reproduction](https://github.com/tienvx/symfony-messenger-in-memory-reproduction) project for the expected behavior.See also my [messenger-memory-transport](https://github.com/tienvx/messenger-memory-transport) projectCommits-------71e7bdf [Messenger] InMemoryTransport handle acknowledged and rejected messages
OskarStark approved these changesAug 20, 2019
Contributor
OskarStark commentedAug 20, 2019
It took time, but here we go, this is in now. Thank you very much@tienvx. |
OskarStark added a commit that referenced this pull requestAug 20, 2019
…rejected messages (tienvx)This PR was submitted for the master branch but it was merged into the 4.4 branch instead (closes#12045).Discussion----------[Messenger] InMemoryTransport ignore acknowledged and rejected messages<!--If your pull request fixes a BUG, use the oldest maintained branch that containsthe bug (seehttps://symfony.com/roadmap for the list of maintained branches).If your pull request documents a NEW FEATURE, use the same Symfony branch wherethe feature was introduced (and `master` for features of unreleased versions).-->Commits-------354b84d [Messenger] InMemoryTransport ignore acknowledged and rejected messages
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.