How do I go about querying the task overall progress using the standalone API?
I can look at Job reports etc using some simple code below, but can’t seem to find a getProgress method.
import Deadline.DeadlineConnect as Connect
Deadline = Connect.DeadlineCon('127.0.0.1', 9091)
jobsIDs = Deadline.Jobs.GetJobIds()
for jobID in jobsIDs:
jobReports = Deadline.JobReports.GetAllJobReports(jobID)
for jobReport in jobReports:
print jobReport
jobLogs = Deadline.JobReports.GetJobLogReports(jobID)
for jobLog in jobLogs:
print jobLog
Are you referring to the overall progress of the Job, or of an individual Task?
Either way, you shouldn’t need to get the Job/Log Reports for this. If it’s for the overall Job, we don’t actually have a value that holds it explicitly; we calculate it as a percentage based on the CompletedChunks property, and the Job’s TaskCount. You can get the Job object by using the GetJob object, and passing in an ID.
If you were referring to progress for individual Tasks, you’d have to use the GetJobTask function, (or GetJobTasks to get all the tasks for a Job), and there should be an actual “Progress” value in there.