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 93ad003 commit 52321a2Copy full SHA for 52321a2
taskiq/decor.py
@@ -1,3 +1,4 @@
1
+import sys
2
from collections.abc import Coroutine
3
from datetime import datetime
4
from types import CoroutineType
@@ -54,6 +55,15 @@ def __init__(
54
55
self.broker = broker
56
self.task_name = task_name
57
self.original_func = original_func
58
+ new_name = f"{original_func.__name__}__taskiq_original"
59
+ self.original_func.__name__ = new_name
60
+ self.original_func.__qualname__ = new_name
61
+ setattr(
62
+ sys.modules[original_func.__module__],
63
+ new_name,
64
+ original_func,
65
+ )
66
+
67
self.labels = labels
68
69
# Docs for this method are omitted in order to help
0 commit comments