FailedMessagesRetryCommand
final class \
- Extends
- Command
Retries messages parked in a failure transport by handling them again on the message bus, as received from the transport they originally failed on.
Handlers that succeeded before are skipped by their HandledStamp. A message that succeeds is removed; a message that fails again is parked anew with the new error and an increased retry count.
Not offered as a scheduler task: retrying is a manual, console operation.
Attributes
- #[AsCommand]
- $name: 'messenger:failed:retry'
- $description: 'Retry one or more messages from the failure transport'
Table of Contents
Methods
- __construct() : mixed
- configure() : void
- execute() : int
Methods
__construct()
public
__construct(ContainerInterface $failureTransports, MessageBusInterface $messageBus, FailureTransport $failureTransport) : mixed
Parameters
- $failureTransports : ContainerInterface
- $messageBus : MessageBusInterface
- $failureTransport : FailureTransport
configure()
protected
configure() : void
execute()
protected
execute(InputInterface $input, OutputInterface $output) : int
Parameters
- $input : InputInterface
- $output : OutputInterface