Open ryanrain2016 opened 1 month ago
So, it happens because the way tasknames generated. You can fix this issue by explicitly defining taskname in the decorator.
@broker.task(task_name="add_one")
async def add_one(value: int) -> int:
print(value, '#' * 20)
return value + 1
taskiq_demo.py如下
run the command to start worker
run the command to run the program
then i get a output
task "..taskiq_demo:add_one" is not found. Maybe you forgot to import it?
when I stop the taskiq window and run the script again, I get a task with name..taskiq_demo:add_one
in my redis. code in taskiq/abc/broker.py(line 317-322) produce the problem