-
Notifications
You must be signed in to change notification settings - Fork 235
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
Support group/scope scheduling in worksteal
#890
Comments
I think the documentation isn't accurate, xdist (as far as I understand the code) doesn't switch schedulers, it just happens that
Only if someone implemented the concept of "groups" in BTW, why do you use |
We have a test suite where some tests are regular Python tests and others test a Python API with a locally hosted server. So we want everything parallelised but the API tests to run sequentially, which they will if they are on the same worker. |
In our case we have huge dataset created for module (like fixtures). Therefore it is much more fast to use Very often we see that some workers finish the job earlier and another worker is hard working to finish it's chunk... it would be great to have a |
--dist
loadgroup
default to worksteal
instead of load
?worksteal
@sshishov Is current |
We have a similar case to @hmellor and @sshishov where we have expensive setup that we wanted shared across a set of tests within a group. However, once setup is complete these tests run very quickly. This results in workers being loaded up with a lot of tests from the loadgroup scheduling, but often then are idle towards the end as other long running tests (that are not within the same group) occupy the other workers. We end up with scheduling that looks like: gw0 - test_one@somegroup... (8 tests, 20minutes runtime) Another option I had was to make |
Hi @amezin , I did not know that |
|
@amezin the question is, if we are using |
Unfortunately, yes. That's what I meant by "unless you reorder tests intentionally"... Although, if I'm not mistaken, there was a random reorder plugin that was able to reorder tests inside of scopes, without breaking the scopes themselves. I'm not sure whether it was |
We tested it out and found out that if we are using But to be honest, I should look more deeper inside what how everything is working inside |
First step done: #1144 |
In the documentation it says that if a test is not in an
xdist_group
, that it defaults to theload
behaviour.Would it be possible to choose the default behaviour so it could be something like
worksteal
?The text was updated successfully, but these errors were encountered: