Skip to content

Commit 08f1166

Browse files
authored
Switch default backend to ProcessPoolExecutor even when loky is installed. (#59)
1 parent 87d0c6f commit 08f1166

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Diff for: CHANGES.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ chronological order. Releases follow [semantic versioning](https://semver.org/)
55
releases are available on [PyPI](https://pypi.org/project/pytask-parallel) and
66
[Anaconda.org](https://anaconda.org/conda-forge/pytask-parallel).
77

8-
## 0.3.1 - 2023-xx-xx
8+
## 0.3.1 - 2023-05-27
99

1010
- {pull}`56` refactors the `ProcessPoolExecutor`.
1111
- {pull}`57` does some housekeeping.
12+
- {pull}`59` sets the default backend to `ProcessPoolExecutor` even when loky is
13+
installed.
1214

1315
## 0.3.0 - 2023-01-23
1416

Diff for: src/pytask_parallel/backends.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ class ParallelBackendChoices(enum.Enum):
4646
PROCESSES = "processes"
4747
THREADS = "threads"
4848

49-
PARALLEL_BACKENDS_DEFAULT = ParallelBackendChoices.PROCESSES
50-
5149
PARALLEL_BACKENDS = {
5250
ParallelBackendChoices.PROCESSES: CloudpickleProcessPoolExecutor,
5351
ParallelBackendChoices.THREADS: ThreadPoolExecutor,
@@ -72,6 +70,4 @@ class ParallelBackendChoices(enum.Enum): # type: ignore[no-redef]
7270
),
7371
}
7472

75-
PARALLEL_BACKENDS_DEFAULT = (
76-
ParallelBackendChoices.LOKY # type: ignore[attr-defined]
77-
)
73+
PARALLEL_BACKENDS_DEFAULT = ParallelBackendChoices.PROCESSES

0 commit comments

Comments
 (0)