"Modify Status Manually" -- is there any sanctioned, automated or API way to do this?

Discussion created by JessicaIsaacson603938 on Feb 28, 2017
Latest reply on Mar 1, 2017 by JessicaIsaacson603938
When we lose the host behind an agent (which happens often because of our commodity/cloud architecture), we get jobs that are permanently in the wrong status, and sometimes they are not a cancelable status. 

In these situations, we have only been able to "Modify status manually" from the GUI. 

Is there any automated way to do this override? Ideally, with a java API call? 

Not at all keen on doing direct SQL updates, but we would really like to automate this behavior in a few cases, so it might be worth it if the procedure is "blessed."