You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a test suite containing N tests, meant to run some long and computationally intensive programs, each test class spins up M processes (the number of processes varies from class to class). I was wondering if there was a way to use xdist and some custom weights to load balance the work in the scheduler. Any thoughts?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a test suite containing N tests, meant to run some long and computationally intensive programs, each test class spins up M processes (the number of processes varies from class to class). I was wondering if there was a way to use xdist and some custom weights to load balance the work in the scheduler. Any thoughts?
MWE
This is a dummy example using MPI.
Desired Outcome
On a machine with 14 cores, running
pytest -n auto
would run:TestParallelMyApp1
andTestParallelMyApp3
TestParallelMyApp2
Beta Was this translation helpful? Give feedback.
All reactions