Skip to content
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

[RFC] feat: allow retrying failed messages #103

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

kbond
Copy link
Member

@kbond kbond commented Nov 10, 2024

Fixes #15.

(Depends on #102)

Screenshot 2024-11-11 at 10 04 52 PM

Adds a button to retry a failed message. I chose not to use the failure transport to retry as I didn't want to block the request. So I send it back to the original transport allowing it to be retried asynchronously. This does trigger the original retries again on another failure whereas bin/console messenger:failed:retry tries again just once and drops. When the retries are used up it is not sent back to the failure transport a second time.

I'm not 100% certain this is without edge-cases I'm not seeing so if anyone has any feedback, I'd appreciate it!

@kbond kbond added the enhancement New feature or request label Nov 10, 2024
@kbond kbond merged commit 4467faf into zenstruck:1.x Nov 12, 2024
36 checks passed
@kbond kbond deleted the ui/retry-failed branch November 12, 2024 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Retry message on failed transport
1 participant