as far as I read on https://github.com/CellProfiler/CellProfiler/wiki/Adapting-CellProfiler-to-a-LIMS-environment CP is using single threads when running in headless mode, which is good.
However when we ran our jobs using CP 3.1.8 (Linux, conda installation) in headless mode on our cluster, we noticed that CP is starting as many threads as the machine has cores, that’s bad because if there are multiple jobs running on a single cluster node the node gets overloaded.
$ ps ax | grep 57429
57429 ? Rl 1356:21 /usr/local/bioinf/conda/envs/cellprofiler-3.1.8/bin/python /usr/local/bioinf/conda/envs/cellprofiler-3.1.8/bin/cellprofiler -p ./mypipeline.cppipe -c -r --out
$ cat /proc/57429/status | grep Threads
Is this intended? How can we limit CP to make sure that only a single thread is started?