Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Messenger] Add a \Throwable argument in RetryStrategyInterface methods #36185

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
Apr 4, 2020

Conversation

Braxilior
Copy link

Q A
Branch? master
Bug fix? no
New feature? yes
Deprecations? no
Tickets Fix #36182
License MIT

This allows to define new retry strategies based on the exceptions thrown during the last handling.

Copy link
Contributor

@Tobion Tobion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nicolas-grekas
Copy link
Member

Why didn't we go with the option of adding the argument to the existing interface, with a proper BC layer? It would make sense to me, don't you think so?

@chalasr
Copy link
Member

chalasr commented Apr 1, 2020

Replacing the concrete method by a virtual one until 6.0? Our BC promise needs a patch :)

@nicolas-grekas
Copy link
Member

@chalasr no need: just adding an @param annotation is enough, alongside with:

  • a commented argument on the signature,
  • all implementations updated accordingly (in a similar way for non-final/internal classes)
  • notes in UPGRADE-5.1/6.0.md + CHANGELOG

@Braxilior up to do it ?

@Braxilior
Copy link
Author

yes 👍

UPGRADE-5.1.md Outdated Show resolved Hide resolved
UPGRADE-6.0.md Outdated Show resolved Hide resolved
@ro0NL
Copy link
Contributor

ro0NL commented Apr 2, 2020

@chalasr i do think the BC promise needs a patch in general. See symfony/symfony-docs#10504 for reference :)

@fabpot fabpot force-pushed the retry-exception branch from 6a39c86 to 5fa9d68 Compare April 4, 2020 07:33
@fabpot
Copy link
Member

fabpot commented Apr 4, 2020

Thank you @Braxilior.

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.

[Messenger] Infinite retries depending on exceptions
7 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.