Closed Emilianocm23 closed 1 month ago
Hi, @Emilianocm23, and thanks for raising this issue. I guess the problem is that result is not ready yet.
I agree that the error is not obvious. We should definitely change it.
To solve this issue, you can use wait_result. It will wait for the result to be ready.
I will keep this issue open until we make a new type of error for this particular edge case and update readme.
@Emilianocm23 In addition, such error may appear if taskiq workers were not initially started. Just in case, here is how to run the workers: https://taskiq-python.github.io/guide/cli.html#worker
For your example, if the code file is named mycode.py
, just run the command:
taskiq worker mycode:broker
FWIW it looks like this issue can be closed.
Hello, im using the same code as the example here on your docs, and i get an error.
Error:
Code:
I want to use the same redis database for tasks broker and results. (Like Django-Q) Im using python 3.11 I installed both taskiq and taskiq-redis modules. Thanks for making this library, it looks really promising.