AWS Thinkbox Discussion Forums

Deadline.Jobs.Job.JobMachineLimit is read-only

Hello,

I’m trying to use scripting API to set machine limits on jobs, but the job parameter seems to be read-only.

I have two questions then :

  • Why is it read-only ?
  • What’s the correct way to define machine limit on a job ?

The only other place mentioning Machine limit is in Statistics module, but something tells me it’s not the right path to choose.

Best regards.

You need to use the method under RepoUtils to edit the MachineLimit of a job:
docs.thinkboxsoftware.com/produ … 1bb3250d36

RepositoryUtils.SetMachineLimit()

The “why” there I believe is because under the hood there are various processes that need to run when modifying the machine limit and that property is just cached from another area. It’s been a little bit since I dug into it, so I’m a bit fuzzy on the deeper details.

Thanks.
I’ll investigate the answer and keep you in touch.

Works like a charm. Thank you people.

Welcome!

Privacy | Site terms | Cookie preferences