6.2 - Scripting API - SetScriptDependencies not updating interface.

Hi, I am trying to add a script dependency from the “On Submission” event.

cloud_dep_file = RepositoryUtils.GetRootDirectory() + '\\custom\\dependency\\SBCloudUploadDependency.py'
job.SetScriptDependencies([cloud_dep_file])
RepositoryUtils.PendJob(job)
self.LogInfo(', '.join(sd))

Output;

INFO: \\sbas03\DeadlineRepository6\custom\dependency\SBCloudUploadDependency.py
INFO: \\sbas03\DeadlineRepository6\custom\dependency\SBCloudUploadDependency.py

Deadline Monitor Interface;

It is setting the value correctly but the Deadline Monitor Interface is not showing any dependency scripts.

Also I am not sure if the dependency script is being run at all, where should the logs be for the script?

Thanks,

Jack.

Yep it is definitely not being run, I have created a dependency script that just returns True and it still won’t release the job.

In your on job submission event, are you saving the change back to the job after you set the script dependency?

RepositoryUtils.SaveJob(job)

No I wasn’t! Thanks.

It is possible to view the output of the dependency script?

You can view the Stdout from the dependency check, including any print statements, etc that you might make in the slave log when it’s executing the pending job scan. During dev/testing/debug, you could run the “Perform Pending Job Scan” manually via your Monitor and view the output in the console panel.

Thanks so much again Mike, you’re always so helpful!