deadline api to do a dependency check

Hi there,

Is there a way to ask the python deadline api to run a dependency check on a particular job/task?

thanks
laszlo

It looks like there’s nothing exposed in 6.1 or 7.0 for that. At least not from what I’ve found…

Do you guys have an idea on how you’d like that implemented? Just something like the following?

bool checkDependency(jobID, jobID)

I’d need to add it to our feature tracker I think.

Yeah something like that, so i could pass in a job ID and maybe a task ID, and it would run all the usual dependency checks for that job/task.

Job.checkDependency(taskIndices=None)

if taskIndices== None, it would just run the test on the whole job, if its a list of indexes, it would test all of those (in case there are any frame dependencies).

Some follow up here. We’re adding this good stuff in the 7.1 codebase. It’s going to be pretty in depth as far as I understand. Should be good stuff.

Awesome, thanks Edwin!

Hey guys,
i couldnt find the function for the dependency check in the 7.1 release we have here both under Job and Tasks classes of the API.

Can some one please point me to the right place where the function is implemented.

~Abhijeet

Deadline.Scripting.JobUtils

Awesome, thank you.

~Abhijeet

hey Guys,
i was testing the per frame dependencies,

from Deadline.Scripting import *
SelectedJobIds = MonitorUtils.GetSelectedJobIds()
SelectedTasks = MonitorUtils.GetSelectedTasks()
JobUtils.TestFrameDependencies(SelectedJobIds[0],[int(SelectedTasks[0].TaskId)])

its throwing errors,

PythonNetException: ArgumentException : Job is not Frame Dependent.
at Deadline.Scheduling.JobRepositoryScan.GetDependentTasksThatCanStart(Job job, TaskCollection taskColl, Boolean verbose, String region)
at Deadline.Scripting.JobUtils.TestFrameDependencies(String jobID, Int32[] taskIDs)

anything that im doing wrong here.

~Abhijeet

Hi,

Are you testing this against a job which is dependent but is also “frame dependent”? (“Use Frame Dependencies” checkbox is enabled in job props?)
docs.thinkboxsoftware.com/produc … g.html#id1

If not, then you would want to use one of the other applicable overloaded script API functions:
docs.thinkboxsoftware.com/produc … utils.html