Skip to content

Commit 9635667

Browse files
committed
make concurrent.ProcessPoolExecutor the default again
because loky gives issues on MacOS
1 parent b08ec42 commit 9635667

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

adaptive/runner.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@
4646
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
4747

4848

49-
_default_executor = (
50-
loky.get_reusable_executor if with_loky else concurrent.ProcessPoolExecutor
51-
)
49+
_default_executor = concurrent.ProcessPoolExecutor
5250

5351

5452
class BaseRunner(metaclass=abc.ABCMeta):
@@ -62,7 +60,8 @@ class BaseRunner(metaclass=abc.ABCMeta):
6260
the learner as its sole argument, and return True when we should
6361
stop requesting more points.
6462
executor : `concurrent.futures.Executor`, `distributed.Client`,\
65-
`mpi4py.futures.MPIPoolExecutor`, or `ipyparallel.Client`, optional
63+
`mpi4py.futures.MPIPoolExecutor`, `ipyparallel.Client` or\
64+
`loky.get_reusable_executor`, optional
6665
The executor in which to evaluate the function to be learned.
6766
If not provided, a new `~concurrent.futures.ProcessPoolExecutor`.
6867
ntasks : int, optional

0 commit comments

Comments
 (0)