Closed ryanrain2016 closed 5 months ago
I know what the difference is. I use vscode run the script in windows. when I use python taskiq_demo.py
. I got a task "..taskiq_demo:add_one" is not found. Maybe you forgot to import it?
discuss on taskiq'issue, close this
Easiest solution would be to add task_name
parameter to the decorator so the name will always be the same.
taskiq_demo.py如下
run the command to start worker
run the command to run the program
then i get a output
task "c:.Users.ryan.Documents.bak.project.python.taskiq_demo.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 namec:.Users.ryan.Documents.bak.project.python.taskiq_demo.taskiq_demo:add_one
in my redis. I've tried running the same script on linux with python 3.9.5. it works well.