Im writing a post job script that will get the render times of all the tasks and write them to a file. My question is how to get a task render time?
Right now I only have the job which Im getting with the following code:
Looks like -2 will be your Pre-Job and -1 will be your Post-Job.
Based on this test script:
from System import TimeSpan
from Deadline.Scripting import *
from Deadline.Jobs import *
job = RepositoryUtils.GetJob("5f89a64330d1f5707c796d7c", True)
tasks = RepositoryUtils.GetJobTasks(job, True)
for task in tasks.TaskCollectionAllTasks:
print (task.TaskId)
print (task.FrameString)
C:\Users\jusbla>"%deadline_path%"\deadlinecommand -Executescript C:\Users\jusbla\Desktop\foo.py
Qt: Untested Windows version 10.0 detected!
-2
0
0
1-1
1
2-2
-1
0
Error: a __main__ method must be defined