Skip to content

Commit 347dbb3

Browse files
committed
minor #19462 [Messenger] Add caution message about messenger consume command and profiler (barell)
This PR was squashed before being merged into the 6.4 branch. Discussion ---------- [Messenger] Add caution message about messenger consume command and profiler <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `7.x` for features of unreleased versions). --> Related to symfony/symfony#53637 Commits ------- 8564b92 [Messenger] Add caution message about messenger consume command and profiler
2 parents e838d34 + 8564b92 commit 347dbb3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

console.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,14 @@ profile is accessible through the web page of the profiler.
641641
terminal supports links). If you run it in debug verbosity (``-vvv``) you'll
642642
also see the time and memory consumed by the command.
643643

644+
.. caution::
645+
646+
If you use Messenger component and want to profile the ``messenger:consume``
647+
command please be aware that it will only create the profile only when
648+
running with the ``--no-reset`` option. Moreover, you should consider using
649+
the ``--limit`` option to only process one or few messages and let the command
650+
finish on it's own. This can make the Performance tab of the profile more readable.
651+
644652
.. versionadded:: 6.4
645653

646654
The ``--profile`` option was introduced in Symfony 6.4.

0 commit comments

Comments
 (0)