Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Messenger] Remove DispatchAfterCurrentBusStamp when message is put on internal queue #32027

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
Jun 22, 2019

Conversation

Nyholm
Copy link
Member

@Nyholm Nyholm commented Jun 13, 2019

Q A
Branch? 4.3
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #32009
License MIT
Doc PR

This will fix #32009.

Thank you @brpauwels for the report.

I consider it safe to remove the DispatchAfterCurrentBusStamp because its meaning disappear after we handled the "current bus".

T0: We add the stamp
T1: We put the envelope on an internal queue in DispatchAfterCurrentBusMiddleware
T2: We handle the current bus.
T3: We start processing our internal queue.

At T3 there we are "after current bus", that is why we dont need the stamp any more.

@nicolas-grekas nicolas-grekas changed the title [Messenger] Remove DispatchAfterCurrentBusStamp when message is put o… [Messenger] Remove DispatchAfterCurrentBusStamp when message is put on internal queue Jun 15, 2019
@nicolas-grekas nicolas-grekas added this to the 4.3 milestone Jun 15, 2019
@Tobion
Copy link
Contributor

Tobion commented Jun 18, 2019

Isn't the better fix to mark the stamp as NonSendableStampInterface like I did in https://github.com/symfony/symfony/pull/32078/files#diff-b7c2047b729d043126dd65bd3e85d157R23 ?

@Tobion
Copy link
Contributor

Tobion commented Jun 18, 2019

I guess we can do both.

@Tobion
Copy link
Contributor

Tobion commented Jun 22, 2019

Thank you @Nyholm.

@Tobion Tobion merged commit 91f1680 into symfony:4.3 Jun 22, 2019
Tobion added a commit that referenced this pull request Jun 22, 2019
…ge is put on internal queue (Nyholm)

This PR was merged into the 4.3 branch.

Discussion
----------

[Messenger] Remove DispatchAfterCurrentBusStamp when message is put on internal queue

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #32009
| License       | MIT
| Doc PR        |

This will fix #32009.

Thank you @brpauwels for the report.

I consider it safe to remove the `DispatchAfterCurrentBusStamp` because its meaning disappear after we handled the "current bus".

T0: We add the stamp
T1: We put the envelope on an internal queue in `DispatchAfterCurrentBusMiddleware`
T2: We handle the current bus.
T3: We start processing our internal queue.

At T3 there we are "after current bus", that is why we dont need the stamp any more.

Commits
-------

91f1680 [Messenger] Remove DispatchAfterCurrentBusStamp when message is put on internal queue
@Nyholm
Copy link
Member Author

Nyholm commented Jun 22, 2019

Thank you for merging.

@fabpot fabpot mentioned this pull request Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants