Skip to content

Commit d156aad

Browse files
committed
Fixed shared labels.
1 parent 02700d4 commit d156aad

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

taskiq/decor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import sys
22
from collections.abc import Callable, Coroutine
3+
from copy import copy
34
from datetime import datetime, timedelta
45
from types import CoroutineType
56
from typing import (
@@ -225,7 +226,7 @@ def kicker(self) -> AsyncKicker[_FuncParams, _ReturnType]:
225226
return AsyncKicker(
226227
task_name=self.task_name,
227228
broker=self.broker,
228-
labels=self.labels,
229+
labels=copy(self.labels),
229230
return_type=self.return_type,
230231
)
231232

0 commit comments

Comments
 (0)