We have a case where an Event plugin needs to open Nuke (in a subprocess) and do something with it.
However, the actual job may be Nuke or Houdini, etc. which means that it is not holding a Nuke license.
Is there a way to reserve a limit for the OnJobFinished event, perhaps directly through Python?
I can check whether the limit has been reached e.g.
limit = RepositoryUtils.GetLimitGroup("nuke", True)
print(limit.LimitInUse < limit.LimitGroupLimit)
but there does not seem to be a way to reserve a limit.
If I change the job’s limits on job finish, when the event plugin starts, this will probably do nothing?