-
Notifications
You must be signed in to change notification settings - Fork 232
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
Enable configuring numprocesses's default tx
command
#1063
Comments
Initially tx was primarily for remote hosts, there's no safe way to know the correct n Would a setting for the default args help |
Depends a little bit what you mean with the |
default arg as in the tx used when using -n |
also heads up - there are considerations for removing gevent/eventlet support from execnet as their implementation in execnet is actively hostile to supporting asyncio as of now |
Yes that was exactly my intention! :)
Hmm that is good to know. We're using nameko which uses |
Over the years I've used and introduced xdist whenever possibly to speed up pytest runs.
Usually just using the
-n X
notation was sufficient. But in our current application, we have to use the--tx
notation to ensure we're using eventlet.This is a lot to type if you 'just' want to speed up tests. And combining it with
-n
reverts it to just usingpopen
.Ideally I'd configuring it to default to using
popen//execmodel=eventlet
and then up the processes using-n X
notation.So my feature request would be:
Enable configuring what 'executing method'
-n
actually uses. Withpopen
being the default.So that in your pytest.ini you can do something like this:
And then can add more worker as desired with the
-n
notation.The text was updated successfully, but these errors were encountered: