-
Notifications
You must be signed in to change notification settings - Fork 230
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
Make load scheduler configurable #255
Labels
Comments
Indeed the option to customize the scheduler is a long standing feature request. Related: #18. |
4 tasks
harveyormston
added a commit
to harveyormston/pytest-xdist
that referenced
this issue
Jun 27, 2019
…nly spread load when a small proportion of the tests take much longer to run than the others. See pytest-dev#255. Add a new command line option to allow small batches to be used with --dist=loadsmall.
This was referenced Dec 20, 2022
nicoddemus
pushed a commit
that referenced
this issue
Dec 23, 2022
Maximum number of tests scheduled in one step. Setting it to 1 will force pytest to send tests to workers one by one - might be useful for a small number of slow tests. Larger numbers will allow the scheduler to submit consecutive chunks of tests to workers - allows reusing fixtures. Unlimited if not set. Fixes #855 Fixes #255
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have several projects where the distribution of tests runtime is quite scattered, eg:
The current load scheduler comes short in this case, as it often ends up sending a batch of slow tests to the same worker.
As a workaround, I use a forked LoadScheduler that uses a fixed queue size (which I use with the minimum value of 2 -> each worker only has one test in its queue at any time):
It would be nice to have at least one of these propositions implemented in xdist:
The text was updated successfully, but these errors were encountered: