8000 feature #51848 [Messenger] Resend failed retries back to failure tran… · symfony/symfony@34a93ef · GitHub
[go: up one dir, main page]

Skip to content

Commit 34a93ef

Browse files
committed
feature #51848 [Messenger] Resend failed retries back to failure transport (ro0NL)
This PR was merge 8000 d into the 6.4 branch. Discussion ---------- [Messenger] Resend failed retries back to failure transport | Q | A | ------------- | --- | Branch? | 6.4 / 5.4 | Bug fix? | yes | New feature? | yes | Deprecations? | no | Tickets | Fix #51815 | License | MIT i want to argue this is a bugfix :) i can confirm with this fix, you can indefinitely retry failures, till they succeed, are deleted manually, or are handled explicitly by other means. What should NOT happen is systems implicitly rejecting/acking messages without any confirmation whatsoever. cc `@fabpot`, `@weaverryan` Commits ------- 53a4a37 [Messenger] Resend failed retries back to failure transport
2 parents 9767270 + 53a4a37 commit 34a93ef

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/Symfony/Component/Messenger/EventListener/SendFailedMessageToFailureTransportListener.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@ public function onMessageFailed(WorkerMessageFailedEvent $event)
5252

5353
$envelope = $event->getEnvelope();
5454

55-
// avoid re-sending to the failed sender
56-
if (null !== $envelope->last(SentToFailureTransportStamp::class)) {
57-
return;
58-
}
59-
6055
$envelope = $envelope->with(
6156
new SentToFailureTransportStamp($event->getReceiverName()),
6257
new DelayStamp(0),

0 commit comments

Comments
 (0)
0