Skip to content

Commit

Permalink
Fix docstring for batch_size in client.map (#7833)
Browse files Browse the repository at this point in the history
  • Loading branch information
dchudz authored May 11, 2023
1 parent 9d90792 commit 2d80271
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions distributed/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2016,12 +2016,12 @@ def map(
Whether or not the function is pure. Set ``pure=False`` for
impure functions like ``np.random.random``.
See :ref:`pure functions` for more details.
batch_size : int, optional
batch_size : int, optional (default: just one batch whose size is the entire iterable)
Submit tasks to the scheduler in batches of (at most)
``batch_size``.
Larger batch sizes can be useful for very large ``iterables``,
as the cluster can start processing tasks while later ones are
submitted asynchronously.
The tradeoff in batch size is that large batches avoid more per-batch overhead,
but batches that are too big can take a long time to submit and unreasonably delay
the cluster from starting its processing.
**kwargs : dict
Extra keyword arguments to send to the function.
Large values will be included explicitly in the task graph.
Expand Down

0 comments on commit 2d80271

Please sign in to comment.