FailedMessagesRetryCommand

final class \TYPO3\CMS\Core\Command\FailedMessagesRetryCommand

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'
#[AsNonSchedulableCommand]

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

execute()

protected execute(InputInterface $input, OutputInterface $output) : int

Parameters

$input : InputInterface
$output : OutputInterface

Return values

int
On this page