-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Scheduler] Allow messages from the SchedulerTransport to be rejected #49964
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
Conversation
Currently, when the processing of a scheduled message fails, Messenger will not be able to go on because the SchedulerTransport will throw an exception. More importantly, the original error will be swallowed by this one and not sent to the failure transport if one is configured. By allowing message rejection, Messenger will continue working as expected. This is the first step to more changes regarding failure handling in ScheduledMessage processing.
To clarify the on failure scenarios:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect! I think we can mark this as a fix for #49804. Additional features could be added but it's no longer a bug.
Actually: |
That's better I think (doesn't give you the impression that they're being retried). |
As the Scheduler component is all about recurring messages, I think they should never be retried. |
If you want the message to be retried, you should use the |
I'm fine with this stance for #49965 but this PR is required imo. |
I agree (and therefore closed #49965). |
Thank you @tucksaun. |
Currently, when the processing of a scheduled message fails, Messenger will not be able to go on because the SchedulerTransport will throw an exception. More importantly, the original error will be swallowed by this one and not sent to the failure transport if one is configured. By allowing message rejection, Messenger will continue working as expected.
This is the first step to more changes regarding failure handling in ScheduledMessage processing.
/cc @fabpot @kbond