-
Notifications
You must be signed in to change notification settings - Fork 225
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
Worker assign logic #1043
Comments
Hey @SviatoslavKovalchuk, I'm short on time, but I can point you to the source code: https://github.com/pytest-dev/pytest-xdist/blob/master/src/xdist/scheduler/loadgroup.py |
Thank you for your quick response @nicoddemus |
The logic IIRC is simple: tests marked with the same |
Can we control which worker will be assigned? |
No, you cannot control directly.
None of the above is planned, however they should all be possible if you implement your own scheduler. You can use one of the builtin as basis: https://github.com/pytest-dev/pytest-xdist/tree/master/src/xdist/scheduler |
Hey all!
I already opened a similar ticket #1031
Could some one please explain to me logic, whats going on under the hood when xdist assign (using @pytest.mark.xdist_group(name="example1")) group of test to worker ?
The text was updated successfully, but these errors were encountered: