Symfony version(s) affected: 4.3.3
Description
When using the messenger:failed:retry command, the message is retried immediately. When it fails again, it should be requeued to the failure transport, but this does not happen due to the following code in the SendFailedMessageToFailureTransportListener class
// avoid re-sending to the failed sender
if (null !== $envelope->last(SentToFailureTransportStamp::class)) {
return;
}
Is this expected behavior?
How to reproduce
Let a handler fail and queue it to the failure transport. Retry the message using the messenger:failed:retry command