8000 feature #51756 [Messenger] RejectRedeliveredMessageException should n… · symfony/symfony@5872615 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5872615

Browse files
committed
feature #51756 [Messenger] RejectRedeliveredMessageException should not be retried (nikophil)
This PR was merged into the 6.4 branch. Discussion ---------- [Messenger] RejectRedeliveredMessageException should not be retried | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | yes | Deprecations? | no | License | MIT | Doc PR | I think it is not needed Hello, when a `RejectRedeliveredMessageException` is thrown once, it is actually retried because it does not implement `UnrecoverableExceptionInterface` but we know it will always because the stamp `AmqpReceivedStamp` will always be there Commits ------- 67790f3 [Messenger] RejectRedeliveredMessageException should not be retried
2 parents 0a9df0c + 67790f3 commit 5872615

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Symfony/Component/Messenger/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ CHANGELOG
88
* Add `HandlerDescriptor::getOptions`
99
* Add support for multiple Redis Sentinel hosts
1010
* Add `--all` option to the `messenger:failed:remove` command
11+
* `RejectRedeliveredMessageException` implements `UnrecoverableExceptionInterface` in order to not be retried
1112

1213
6.3
1314
---

src/Symfony/Component/Messenger/Exception/RejectRedeliveredMessageException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
/**
1515
* @author Tobias Schultze <http://tobion.de>
1616
*/
17-
class RejectRedeliveredMessageException extends RuntimeException
17+
class RejectRedeliveredMessageException extends RuntimeException implements UnrecoverableExceptionInterface
1818
{
1919
}

0 commit comments

Comments
 (0)
0