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).
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.