Skip to content

Commit 257b70a

Browse files
committed
[Messenger] Document StopWorkerException
1 parent 1bddd35 commit 257b70a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

messenger.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,11 @@ The first argument is the receiver's name (or service id if you routed to a
461461
custom service). By default, the command will run forever: looking for new messages
462462
on your transport and handling them. This command is called your "worker".
463463

464+
.. versionadded:: 5.4
465+
466+
Throw an instance of :class:`Symfony\\Component\\Messenger\\Exception\\StopWorkerException`. to stop properly the worker.
467+
468+
464469
Deploying to Production
465470
~~~~~~~~~~~~~~~~~~~~~~~
466471

0 commit comments

Comments
 (0)