Issue Feature Under Review Stale

#110228Provide a `messenger:stats` console command

Stefan Bürk 07/19/26, 19:23 updated 08/01/26, 20:36

Description

Symfony Messenger ships a “messenger:stats” command that reports the number of
queued messages per transport, but TYPO3 does not expose it.

TYPO3 should provide a native “messenger:stats” console command that reports the
message count for the configured messenger transports, so the queue fill level
can be monitored from the command line.

Expected

  • ./bin/typo3 messenger:stats prints a table of transport name and message
    count for every countable transport.
  • ./bin/typo3 messenger:stats <name> [<name> ...] limits the output to the
    given transports.
  • --format=txt (default, table) and --format=json (machine readable) are
    supported.

Details

  • Countable transports are receivers implementing
    Symfony\Component\Messenger\Transport\Receiver\MessageCountAwareInterface.
    The shipped Doctrine transport (“doctrine”) qualifies; the synchronous
    “default” transport is not a receiver and is not listed.
  • A transport that exists but cannot report a count is reported as uncountable
    rather than silently omitted.
  • The command is read-only and does not modify any transport.

Scope

This is the first, self-contained part of bringing TYPO3 to parity with the
Symfony Messenger tooling. The related “messenger:setup-transports” command and
the failure-transport / retry / “messenger:failed:*” tooling are handled in
separate, dedicated issues, because “setup-transports” must account for the
DBMS-managed “sys_messenger_messages” table (TYPO3 manages its schema, so it
must be excluded from the transport self-setup).

Reviews 2

History 06