Skip to content

Commit 64440da

Browse files
committed
Fixed function getter.
Signed-off-by: Pavel Kirilin <[email protected]>
1 parent 475dd18 commit 64440da

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

taskiq/cli/async_task_runner.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,13 +261,12 @@ async def async_listen_messages( # noqa: C901, WPS210, WPS213
261261
message.task_name,
262262
)
263263
continue
264-
func = broker.available_tasks[message.task_name]
265264
logger.debug(
266265
"Function for task %s is resolved. Executing...",
267266
message.task_name,
268267
)
269268
result = await run_task(
270-
func,
269+
broker.available_tasks[message.task_name].original_func,
271270
task_signatures.get(message.task_name),
272271
message,
273272
cli_args.log_collector_format,

0 commit comments

Comments
 (0)