You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,9 @@ You can send delayed messages and set priorities to messages using labels.
24
24
25
25
To send delayed message, you have to specify
26
26
delay label. You can do it with `task` decorator,
27
-
or by using kicker. For example:
27
+
or by using kicker.
28
+
In this type of delay we are using additional queue with `expiration` parameter and after with time message will be deleted from `delay` queue and sent to the main taskiq queue.
29
+
For example:
28
30
29
31
```python
30
32
broker = AioPikaBroker()
@@ -56,7 +58,10 @@ To send delayed message you can install `rabbitmq-delayed-message-exchange`
There is `delayed_message_exchange_plugin``AioPikaBroker` parameter and it must be `True` to turn on delayed message functionality. For example:
61
+
There is `delayed_message_exchange_plugin``AioPikaBroker` parameter and it must be `True` to turn on delayed message functionality.
62
+
63
+
The delay plugin can handle tasks with different delay times well, and the delay based on dead letter queue is suitable for tasks with the same delay time.
0 commit comments