AWS Thinkbox Discussion Forums

Error from GetAllReports()

I am trying to query a job’s reports in an event plugin. The plugin triggers when a job completes.

# Get job reports reports = JobReportCollection.GetAllReports() print reports

However, I keep getting this error message:

[code]=======================================================
Error

Event Error (OnJobFinished): TypeError : not enough arguments[/code]

Does GetAllReports actually requires a job id or some other argument? According to the scripting reference, it does not.

I have the same issue with GetLogReports().

Ah okay…this is it:

reports = RepositoryUtils.GetJobReports(job.JobId)

Something others might helpful is throwing random function calls into the Github search page for our Github repo. You can find all kinds of fun examples that way:

github.com/ThinkboxSoftware/Dea … orts&type=

Cool! Thanks!

Privacy | Site terms | Cookie preferences