Review main Ready for review Quiet

94835[FEATURE] Add `messenger:stats` console command

Stefan Bürk CR -2 V +1 Hard +359 −0 updated 10/08/26, 19:44

Commit message

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

A native "messenger:stats" console command is added. It
reports the message count for the configured messenger
transports registered via the "messenger.receiver" tag, so
the queue fill level can be monitored from the command line:

    ./bin/typo3 messenger:stats
    ./bin/typo3 messenger:stats doctrine
    ./bin/typo3 messenger:stats --format=json

Only transports that can report their count are listed, that
is receivers implementing MessageCountAwareInterface. The
shipped Doctrine transport 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. The command is read-only.

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 6
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/35/94835/6 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/35/94835/6 && git cherry-pick FETCH_HEAD

Review

  • Code review CR -2 Blocked
    • Stefan Bürk -2
    • Georg Ringer -1
    • Benni Mack -1
    • Simon Schaufelberger +1
  • Verified V +1 Needs a vote
    • Oliver Klee +1
    • Maike Kiebele +1
    • Simon Schaufelberger +1
    • core-ci +1 CI

Relation chain 5

  1. main 94837[FEATURE] Add Messenger failure transport support Based on this change Merged Stefan Bürk CR +2 V +2 messenger Expert +1693 −0

    The chain has patch set 11 of 14, the changes above it need a rebase.

  2. main 94836[FEATURE] Add `messenger:setup-transports` console command Based on this change Merge conflict Stefan Bürk CR -2 V +1 messenger Hard +422 −0
  3. 94835 [FEATURE] Add `messenger:stats` console command This change

  4. main 94834[FEATURE] Maintain DB connections in Messenger workers This change is based on it Merged Stefan Bürk CR +2 V +2 messenger Expert +1084 −0

    The chain has patch set 9 of 10, the changes above it need a rebase.

  5. main 94833[BUGFIX] Honour `AsMessageHandler::$fromTransport` property This change is based on it Merged Stefan Bürk CR +2 V +2 → 14.3 messenger Hard +613 −13

    The chain has patch set 7 of 8, the changes above it need a rebase.

Issues 1

Files 4

Review log 1521

  1. Stefan Bürk uploaded patch set 1 07/19/26, 19:33

  2. Stefan Bürk wrote 07/19/26, 19:35

    Topic set to messenger
  3. core-ci voted on patch set 1 V +1 07/19/26, 19:43 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/104967

  4. Stefan Bürk rebased onto patch set 2 V +1 07/19/26, 20:38

  5. core-ci voted on patch set 2 V +1 07/19/26, 20:50 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/104970

  6. Stefan Bürk uploaded patch set 3 V +1 07/19/26, 23:39

  7. core-ci voted on patch set 3 V +1 07/19/26, 23:49 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/104978

  8. Stefan Bürk rebased onto patch set 4 V +1 07/20/26, 13:14

  9. core-ci voted on patch set 4 V +1 07/20/26, 13:28 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/105031

  10. Oliver Klee voted on patch set 4 V +1 07/27/26, 07:50

  11. Stefan Bürk rebased onto patch set 5 V +1 07/28/26, 06:29

  12. core-ci voted on patch set 5 V +1 07/28/26, 06:49 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/105518

  13. Oliver Klee voted on patch set 5 V +1 07/29/26, 16:53

  14. Stefan Bürk rebased onto patch set 6 V +1 08/01/26, 20:36

  15. core-ci voted on patch set 6 V +1 08/01/26, 20:48 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/105817

  16. Oliver Klee voted on patch set 6 V +1 08/02/26, 08:50

  17. Simon Schaufelberger voted on patch set 6 CR +1 V +1 08/02/26, 08:57

  18. Maike Kiebele voted on patch set 6 V +1 08/19/26, 06:58

  19. Georg Ringer commented on patch set 6 CR -1 08/20/26, 05:42

    StatsCommand.php:69 Unresolved

    can we have autocomplete for both commands?

    StatsCommand.php:107 Unresolved

    why using this method and not just an in_array($format, $this->getAvailableFormatOptions(), true) which duplicates the allowed formats?
  20. Stefan Bürk voted on patch set 6 CR -2 10/08/26, 12:49

  21. Benni Mack commented on patch set 6 CR -1 10/08/26, 19:44

    StatsCommand.php:48 Unresolved

    I would call the class MessengerStatsCommand, the test is called like that already.