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
Failed to assign tasks correctly #69
Comments
If I'm understanding your issue, correctly (and I may not), this is actually not a bug as it is outside of control of jug. Jug makes no attempt at "fairly" distributing tasks. The distribution of tasks depends only on the scheduling of processes by the operating system, which can be very stochastic. If there are processes that are idle for a long time, this may be a jug issue, but what you describe seems like the expected behaviour. |
I see what you mean, but the problem is the 11 tasks are executed twice. It's reasonable that tasks are assigned stochastically. |
Ah, then it is a big problem. Please post some code with more information. |
Actually, jug is working as expected as the task depends on the This is a variant of this issue: http://jug.readthedocs.io/en/latest/faq.html#it-doesn-t-work-with-random-input |
I see. I changed the argument "start_time" to a fixed number and the problem is fixed. Thanks! |
Hi, I wrote a small piece of python code on a macbook which has 10 + 1 tasks. 10 similar sleeping task and 1 joint task. I am running it by 4 processes and found that sometime Jug cannot assign task correctly. It happens like one process does all tasks along and, at the same time, another 3 share the 11 tasks.
The text was updated successfully, but these errors were encountered: