8000 [Mailer] Randomize the first transport used by the RoundRobin transport by fabpot · Pull Request #35525 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Mailer] Randomize the first transport used by the RoundRobin transport #35525

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 31, 2020

Conversation

fabpot
Copy link
Member
@fabpot fabpot commented Jan 30, 2020
Q A
Branch? master
Bug fix? no
New feature? yes
Deprecations? no
Tickets Fix #33723
License MIT
Doc PR symfony/symfony-docs#...

When not using Messenger, and so sending only one message, the RoundRobin class does not work as the first transport is always used. This PR randomizes the first transport used by the class to mitigate that problem.

@fabpot
Copy link
Member Author
fabpot commented Jan 30, 2020

@javiereguiluz The docs should be updated when this PR is merged.

fabpot added a commit that referenced this pull request Jan 31, 2020
…ndRobin transport (fabpot)

This PR was merged into the 5.1-dev branch.

Discussion
----------

[Mailer] Randomize the first transport used by the RoundRobin transport

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | Fix #33723 <!-- prefix each issue number with "Fix #", if any -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

When not using Messenger, and so sending only one message, the RoundRobin class does not work as the first transport is always used. This PR randomizes the first transport used by the class to mitigate that problem.

Commits
-------

6ebe83c [Mailer] Randomize the first transport used by the RoundRobin transport
@fabpot fabpot merged commit 6ebe83c into symfony:master Jan 31, 2020
@fabpot fabpot mentioned this pull request May 5, 2020
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.

[Mailer] Allow using round-robin without the Messenger component
2 participants
0