-
Notifications
You must be signed in to change notification settings - Fork 83
Closed
Description
Problem
The _get_num_workers() method in components/clp-package-utils/clp_package_utils/controller.py currently returns multiprocessing.cpu_count() // 2, which evaluates to 0 on single-CPU hosts. This would prevent workers from starting properly.
Location
components/clp-package-utils/clp_package_utils/controller.py, lines 791-797 (as of PR #1502)
Impact
On systems with a single CPU core, no workers would be started, causing CLP components to fail.
Solution
Ensure the method returns at least 1 worker by flooring the result to a minimum of 1.
References
- Original discussion: feat(deployment): Add
--setup-onlyflag tostart-clp.shto set up the package without starting components (resolves #1475). #1502 (comment) - PR feat(deployment): Add
--setup-onlyflag tostart-clp.shto set up the package without starting components (resolves #1475). #1502: feat(deployment): Add--setup-onlyflag tostart-clp.shto set up the package without starting components (resolves #1475). #1502 - Requested by: @junhaoliao
Metadata
Metadata
Assignees
Labels
No labels