Skip to content

Commit

Permalink
[Messenger] Revert "Resend failed retries back to failure transport "
Browse files Browse the repository at this point in the history
Reverts #51848
  • Loading branch information
ro0NL authored Feb 24, 2024
1 parent 18d3ea9 commit 4cffc04
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions EventListener/SendFailedMessageToFailureTransportListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ public function onMessageFailed(WorkerMessageFailedEvent $event)

$envelope = $event->getEnvelope();

// avoid re-sending to the failed sender
if (null !== $envelope->last(SentToFailureTransportStamp::class)) {
return;
}

$envelope = $envelope->with(
new SentToFailureTransportStamp($event->getReceiverName()),
new DelayStamp(0),
Expand Down

0 comments on commit 4cffc04

Please sign in to comment.