We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bddd35 commit 885e42dCopy full SHA for 885e42d
messenger.rst
@@ -461,6 +461,17 @@ The first argument is the receiver's name (or service id if you routed to a
461
custom service). By default, the command will run forever: looking for new messages
462
on your transport and handling them. This command is called your "worker".
463
464
+.. tip::
465
+
466
+ To properly stop a worker, throw an instance of
467
+ :class:`Symfony\\Component\\Messenger\\Exception\\StopWorkerException`.
468
469
+ .. versionadded:: 5.4
470
471
+ The :class:`Symfony\\Component\\Messenger\\Exception\\StopWorkerException`
472
+ class was introduced in Symfony 5.4.
473
474
475
Deploying to Production
476
~~~~~~~~~~~~~~~~~~~~~~~
477
0 commit comments