Skip to content

Commit 982ef00

Browse files
Improve docs of maxschedchunk (#893)
1 parent c7d8609 commit 982ef00

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/distribution.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ The test distribution algorithm is configured with the ``--dist`` command-line o
5050
.. _distribution modes:
5151

5252
* ``--dist load`` **(default)**: Sends pending tests to any worker that is
53-
available, without any guaranteed order.
53+
available, without any guaranteed order. Scheduling can be fine-tuned with
54+
the `--maxschedchunk` option, see output of `pytest --help`.
5455

5556
* ``--dist loadscope``: Tests are grouped by **module** for *test functions*
5657
and by **class** for *test methods*. Groups are distributed to available

src/xdist/plugin.py

+2
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ def pytest_addoption(parser):
173173
"one - might be useful for a small number of slow tests. "
174174
"Larger numbers will allow the scheduler to submit consecutive "
175175
"chunks of tests to workers - allows reusing fixtures. "
176+
"Due to implementation reasons, at least 2 tests are scheduled per "
177+
"worker at the start. Only later tests can be scheduled one by one. "
176178
"Unlimited if not set."
177179
),
178180
)

0 commit comments

Comments
 (0)