Doing tests on a Monitor script and I’d like to add and remove slaves from a group for overnight rendering. I have a batch file that does this through deadlinecommand.exe.
deadlinecommand AddGroupToSlave
deadlinecommand RemoveGroupFromSlave
I looked through the python reference docs and there are “AddGroupToSlave” and “RemoveGroupFromSlave” functions but they don’t seem to work. Is there a way to do this with a monitor script? Thanks.
Cheers
Hello,
Can I verify if you have been making sure to save the slave object when done making changes?
I actually can’t get the module to load.
I realize now that I originally found the function in the python reference docs for Deadline7, and we are running Deadline6. It doesn’t seem to be listed in the Deadline6 python docs under ‘RepositoryUtils’. I can, however, load it in the standalone from ‘Slaves.Slaves’. But the module is likewise not found when I try and load it this way from the monitor.
Hello,
While I am not a coder, I have figured out that what you need to do in your script is use MonitorUtils.GetSelectedSlaveSettings to get the current pools for each selected slave using SlaveGroups, then use SetSlaveGroups to set the groups what it currently is, plus whatever you are adding. Hopefully this helps get you down the right path.