File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ def __init__(
182
182
npoints_goal : int | None = None ,
183
183
end_time_goal : datetime | None = None ,
184
184
duration_goal : timedelta | int | float | None = None ,
185
- executor : ( ExecutorTypes | None ) = None ,
185
+ executor : ExecutorTypes | None = None ,
186
186
ntasks : int = None ,
187
187
log : bool = False ,
188
188
shutdown_executor : bool = False ,
@@ -934,11 +934,9 @@ def replay_log(
934
934
# -- Internal executor-related, things
935
935
936
936
937
- def _ensure_executor (
938
- executor : ExecutorTypes | None ,
939
- ) -> concurrent .Executor :
937
+ def _ensure_executor (executor : ExecutorTypes | None ) -> concurrent .Executor :
940
938
if executor is None :
941
- executor = concurrent . ProcessPoolExecutor ()
939
+ executor = _default_executor ()
942
940
943
941
if isinstance (executor , concurrent .Executor ):
944
942
return executor
You can’t perform that action at this time.
0 commit comments