We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbf9a62 commit b9919b5Copy full SHA for b9919b5
adaptive/runner.py
@@ -806,7 +806,9 @@ def _ensure_executor(executor):
806
return executor
807
elif with_ipyparallel and isinstance(executor, ipyparallel.Client):
808
return executor.executor()
809
- elif with_distributed and isinstance(executor, distributed.Client):
+ elif with_distributed and isinstance(
810
+ executor, (distributed.Client, distributed.client.Client)
811
+ ):
812
return executor.get_executor()
813
else:
814
raise TypeError(
0 commit comments