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
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,14 +39,14 @@ broker = AioPikaBroker(
39
39
)
40
40
```
41
41
42
-
After that you have to specify delay label. You can do it with `task` decorator, or by using kicker.
42
+
After that you have to specify x_delay label. You can do it with `task` decorator, or by using kicker.
43
43
44
44
In this type of delay we are using additional queue with `expiration` parameter. After declared time message will be deleted from `delay` queue and sent to the main queue. For example:
45
45
46
46
```python
47
47
broker = AioPikaBroker(...)
48
48
49
-
@broker.task(delay=3)
49
+
@broker.task(x_delay=3)
50
50
asyncdefdelayed_task() -> int:
51
51
return1
52
52
@@ -57,11 +57,11 @@ async def main():
57
57
await delayed_task.kiq()
58
58
59
59
# This message is going to be received after the delay in 4 seconds.
60
-
# Since we overridden the `delay` label using kicker.
0 commit comments