How to get Tasks Ids

I wonder if there is a way to query Tasks Reports from inside of Event’s OnJobFinished .

TaskCount returns the number of Tasks:

task_count = job.TaskCount

Is there is a way to query Task by its and job id number?

Yup! You can actually grab all of the tasks at once, then either iterate over them. You can also wrap the C# array into a list() if that makes it easier to deal with.

        tasks = RepositoryUtils.GetJobTasks(job, True)

github.com/ThinkboxSoftware/Dea … obStats.py

Update: Missed the Task Report bit there. Here’s another example:

    report_collection = RepositoryUtils.GetJobReports(string_job_id)
    reports = list(report_collection.GetAllReports())

github.com/ThinkboxSoftware/Dea … tSlaves.py