Is there a way to do this dynamically, based on job load on the farm.
Here's what I would like ....
Let's say we have a little 10 worker farm, each worker should be able to handle 4 rendering tasks simultaneously ... so the CPU value for each is set to 4.
Farm has no work to start ... then a job comes in to render 1000 frames.
I'd like that job to automatically partition down to 10, 100 frame sub jobs, with each of the workers taking on a single subjob.
While that's running, a second 1000 frame job comes along...
I'd like that to also, automatically partition to 10, 100 frame sub jobs, with each worker getting one of the 10 sub jobs.
So now I would have 20 sub jobs running, where each worker is working on 2 subjobs.
If I apply your solution above, the second job waits for the first to complete, because the job slots left unused by the first job are locked.
But if I leave all the sub-job slots UNlocked (4 per worker), I can end up with just 5 workers loaded down with 4 subjobs each instead of having the load distributed over the whole farm.
Does this make sense?