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 11bcebd commit fa7800dCopy full SHA for fa7800d
taskiq_faststream/kicker.py
@@ -1,5 +1,13 @@
1
+from typing import Any
2
+
3
from taskiq.kicker import AsyncKicker, _FuncParams, _ReturnType
4
+from taskiq.message import TaskiqMessage
5
6
7
class LabelRespectKicker(AsyncKicker[_FuncParams, _ReturnType]):
8
"""Patched kicker doesn't cast labels to str."""
9
10
+ def _prepare_message(self, *args: Any, **kwargs: Any) -> TaskiqMessage:
11
+ msg = super()._prepare_message(*args, **kwargs)
12
+ msg.labels["message"] = self.labels["message"]
13
+ return msg
0 commit comments