Is there a way to retrieve Task Time and Startup Time using Python API?

Hi,

I am doing some worker benchmarking and I am in the process of writing a script to pull data from several maintenance jobs that I have set up.

Some of the stats in which I am interested include the Task Time and Startup Time. These are both columns that appear in the Tasks panel in Deadline Monitor, however, in the Deadline Scripting Reference I am unable to find any attributes that would correspond to these values.

There is task.TaskRenderTime, but that is not the same as Task Time, which is equal to Render Time + Startup Time.

Any help is appreciated.

Thanks!

Ahoy, bit of a peasant here so there could be some misinformation, but behind the scenes the deadline scripting is just a wrapper over the standalone Python API. In the standalone API you can access everything including these guys with:

dc.Tasks.GetJobTasks(job["_id"])["Tasks"]:

‘Start’: ‘2025-01-21T17:32:53.522+11:00’, ‘StartRen’: ‘2025-01-21T17:32:56.146+11:00’

I only know how to do that using the normal Deadline connector but it may be possible to piggyback on the existing connection the scripting uses… I’m not sure:

URL = WEB_API_IP/URL
PORT = 8081

dc=DeadlineCon(URL, PORT)

TLDR: Not possible with Deadline Scripting but it is possible with the Standalone API

I think you will find what you are looking for here: