8000 Do not stack retry stamp · symfony/symfony@cbbab2e · GitHub
[go: up one dir, main page]

Skip to content

Commit cbbab2e

Browse files
committed
Do not stack retry stamp
1 parent a73523b commit cbbab2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function onMessageFailed(WorkerMessageFailedEvent $event)
6767
}
6868

6969
// add the delay and retry stamp info
70-
$retryEnvelope = $envelope->with(new DelayStamp($delay), new RedeliveryStamp($retryCount));
70+
$retryEnvelope = $envelope->withoutAll(DelayStamp::class)->withoutAll(RedeliveryStamp::class)->with(new DelayStamp($delay), new RedeliveryStamp($retryCount));
7171

7272
// re-send the message for retry
7373
$this->getSenderForTransport($event->getReceiverName())->send($retryEnvelope);

0 commit comments

Comments
 (0)
0