I am trying to write a utility to detect and manage a situation with Workers entering a hanging state. One sign that a machine has entered this state is that the Worker will report being in a “rendering” state, but the Task view lists tasks as being in a “Waiting to Start” state. I am looking for how to retrieve these pieces of information through the Deadline RepositoryUtils scripting interface. The attached image is indicative of what the UI displays when a machine is in a hanging state - machine ETVENC-RN153 is currently reporting that it is rendering, but the task view reveals that it is hanging.
How can I get access to this information in as close to the way that the Monitor UI is accessing it?