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
Problem
The
_get_num_workers()method incomponents/clp-package-utils/clp_package_utils/controller.pycurrently returnsmultiprocessing.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
--setup-onlyflag tostart-clp.shto set up the package without starting components (resolves #1475). #1502 (comment)--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