405
406
key = attrgetter('job_type.name')
406
407
sorted_jobs = sorted(jobs, key=key)
407
409
for job_type_name, grouped_jobs in groupby(sorted_jobs, key=key):
408
410
# Fetch the jobs in batches grouped by their job type.
410
412
ISpecificBuildFarmJobSource, job_type_name)
417
427
raise InconsistentBuildFarmJobError(
418
428
"Could not find all the related specific jobs.")
425
430
def getBuildsForBuilder(self, builder_id, status=None, user=None):
426
431
"""See `IBuildFarmJobSet`."""