components-contrib
components-contrib copied to clipboard
Attempt at fixing a weird edge case where an error interrupts the backoff policy but the session context is still active...
Description
...and the retry policy is set to retry forever... In some rare occasions, the message would be skipped despite the process being still active... This code should ensure the message is being retried for as long as the session context is active if the retry policy is set to retry forever.
Issue reference
#3529
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list:
- [x] Code compiles correctly
- [x] Created/updated tests
- [ ] Extended the documentation - N/A