Deadline command to stop specific worker broken?

We used to be able to use deadlinecommand.exe to stop specific workers on a machine after their task was done. I worked when we were using deadline 10.1, but now that we upgraded to 10.4 it only stops the first worker on the machine instead of the one we want it to.

we used to call deadlinecommand.exe RemoteControl Machine1 onLastTaskComplete StopSlave workerB and it would stop Machine1-workerB

now it only stop the Machine1 worker without the suffix.

Monitor still works to stop specific workers, but we need to script this so we can make sure that we stop specific workers while we update the software they use every night.

If the deadlinecommand.exe is broken now is there another way to do it?

It looks like I can use deadlineworker.exe instead of deadlinecommand.exe to tell the worker to stop after the task it’s on is done, but that doesn’t seem to update monitor or the webservice api. They both report that the worker is still up even though it is shut down.

So I almost have this working again, but starting the workers back up is a problem.

deadlinecommand RemoteControl doesn’t seam to work if it’s trying to run on the same machine.

deadlineworker to start the worker will start the worker, but as soon as the job that called that finishes it kills the worker.