Skip to content

Commit 6d04055

Browse files
authored
fix(clp-package): Ensure at least one worker in default calculations (fixes #1509). (#1547)
1 parent d4168d7 commit 6d04055

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/clp-package-utils/clp_package_utils/controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ def _get_num_workers() -> int:
819819
:return: Number of worker processes to run.
820820
"""
821821
# This will change when we move from single to multi-container workers. See y-scope/clp#1424
822-
return multiprocessing.cpu_count() // 2
822+
return max(1, multiprocessing.cpu_count() // 2)
823823

824824
def _get_docker_file_name(self) -> str:
825825
"""

0 commit comments

Comments
 (0)