Skip to content

[Messenger] Retry Transport does not send the message back to retry transport on failing #33685

@BrentRobert

Description

@BrentRobert

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions