Handle single-core scenario
The setup of the dask cluster by default assumes a minimum of several cores to have space for workers, scheduler, and client.
This is a reasonable assumption in general in a modern environment, particularly on HPC, but sometimes, particularly for test runs, we might be/want to be restricted to few or a single core. This should still work.
issue