Hey there,
I’m trying to change the ‘machine limit’ on jobs, and I can’t work out how to set the property on the job… I can’t work it out! I dont want to add/remove specific machines, or limit groups, but just the simple - limit job to 5 machines…
I can access my job properies like comment like this… so I’m pretty much there!
oJob.JobComment
Hi Simon,
I’ve not done this before but in Deadline monitor you can right click the job and select Modify Job Properties from the menu. Then in the job properties box, select Machine Limit (4th one down) and then you can set the number of slaves that can render the job there.
Hope that helped!
All the best,
Andy
Oh silly me I forget to even mention that I’m talking about doing it all via scripting 
Sorry dude
I kinda guessed you were by the code display but thought I’d mention that solution in case it helped all the same 
Are you running Deadline 5 or 6? This should definitely be possible, I just want to make sure I’m giving you the info for the right version!
Thanks! The RepositoryUtils module has a SetMachineLimitMaximum function:
SetMachineLimitMaximum( string jobId, int max )
So you should be able to do this:
from Deadline.Scripting import *
...
RepositoryUtils.SetMachineLimitMaximum( oJob.JobId, 5 )
Cheers,
That’s great thanks Ryan, not sure why I couldn’t quite work out which one it was!