fn constrain_workers(workers: Vec<usize>, max_workers: usize) -> Vec<usize>Expand description
Reduce the worker groups until their total satisfies the configured maximum.
Group counts are levelled down toward an even share of the maximum, with the remainder spread one apiece over the leading populated groups. Every populated group retains at least one worker so its queue keeps service, making the number of populated groups the effective floor.