What’s the variable/class to use when seeking the version of Deadline a Worker is running? I’m looking for the equivalent of what the column ‘Version’ contains in the stock Workers pane in the UI.
I’ve searched the docs and the forum posts, I think my keywords are tough b/c I couldn’t find this.
The scripting documentation only shows functions for getting the major version, and the major.minor version of Deadline. You can execute ClientUtils.GetDeadlineVersion() within a client script to get the latter:
ClientUtils.GetDeadlineVersion()
--> 10.1
However, the deadlinecommand CLI lets you get the whole string, so you could just execute it with the -GetVersion argument, and use the string value it returns, for example:
I’m using this in conjunction with a Worker reporting script, where I am iterating over a list of Workers to produce diagnostics for each Worker. In that context, what would be a way to use ClientUtils functions?
The RepositoryUtils.GetSlaveInfo() function returns a SlaveInfo object which has an undocumented .Version property that represents what you see in the Version column in the Workers panel. So if you will be running your script within the Monitor (as opposed to using the stand-alone Python scripting API outside of Deadline), then you could say
On an ancient installation of Deadline on one of my machines where two workers were Offline and the local one was still active, it printed to the Monitor’s Console window: