System command to enable/disable workers?

Hello,

We are looking for a way to issue commands to enable or disable a worker from a custom UI or command line script. We’d like to build a simple UI to allow artists to put their own workstation on or off the farm.

I can’t seem to find this in the docs, but I might be missing something. Any suggestions? Also it would be good to be able to disable and keep rendering current task, or disable and kill current task (with caution).

Thanks!

Laurence

You would probably want to issue the commands via deadlinecommand application executable.

However interestingly I cannot find any mentioned of “disable” in the commands/arguments :thinking:

1 Like

You’re right, you can’t disable the Worker from deadlinecommand but you can stop the Worker, and it’s already got support for “stop after your current task”.

You could use something like RemoteControl <machine name> OnLastTaskComplete StopSlave to stop the Worker after it’s done the task it’s working on. If you want the Worker to stop without finishing what it’s working on, RemoteControl <machine name> StopSlave will do that.

If you’d like to disable the Workers you’ll need to use one of the APIs, but that’ll be a little more work.

2 Likes

Thanks guys this is great. I did manage to find this command that seems to work - but I suspect the remote control commands will work better:

/opt/Thinkbox/Deadline10/bin/deadlinecommand -SetSlaveSetting {workerName} SlaveEnabled False

2 Likes

Ah well pretty logical I did not find “disable” then :rofl: