Skip to content

Commit 732b1d3

Browse files
committed
clarifying that middleware may be called twice
1 parent 2a140d7 commit 732b1d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

messenger.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,6 +1297,10 @@ for each bus looks like this:
12971297
These middleware names are actually shortcuts names. The real service ids
12981298
are prefixed with ``messenger.middleware.``.
12991299

1300+
The middleware are executed when the message is dispatched but *also* again when
1301+
a message is received via the worker (for messages that were sent to a transport
1302+
to be handled asynchronously). Keep this in mind if you create your own middleware.
1303+
13001304
You can add your own middleware to this list, or completely disable the default
13011305
middleware and *only* include your own:
13021306

0 commit comments

Comments
 (0)