Hey,
I am trying to use the deadline scripting api to get the task times from a job.
With the code below I am able to get the correct task times of of completed jobs. However, if the job is still in rendering status, it would display a value like this 10675199.02:48:05.4775807
, which isn’t the number displayed on the TaskTime column. What am I doing wrong?
job_id='59e10d4547d0a895e4778056'
job = RepositoryUtils.GetJob(job_id, True)
tasks = RepositoryUtils.GetJobTasks(job, True)
for task in tasks:
print task.TaskId,task.TaskTime