-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example for batch is not giving expected results #101
Comments
Can you give more detailed steps to reproduce, including the exact output you're seeing? If there are multiple tasks in the queue at the time you start TaskTiger you should be seeing an array of tasks. This is tested also in |
I have the same issue. tt/batch.py
Clean redis version=4.0.6 in docker Starting worker
And trying to add a lot of tasks
But in workers logs all the tasks were processed one by one
|
I should run the worker in this way:
Now it works) In my opinion this point was not clear after reading the documentation. Also after I looked through the sources and tests, I found interesting configuration params: "SELECT_TIMEOUT", "SELECT_BATCH_TIMEOUT" |
@mrsndmn I am experimenting with this, you ran tt.batch.tiger.run_worker() from the cli or your script? |
I have created a test function to test receiving batch tasks:
For tiger configuration I have same for both sender and task definition:
When executing
PYTHONPATH=. tasktiger
it prints tasks one-by-one instead of 1 array with the list of args and kwargs.Also it will be needed to add
PYTHONPATH
to the supervisor configuration also, which is not mentioned in "Documentation".Thanks.
The text was updated successfully, but these errors were encountered: