Part of lp.buildmaster.interfaces.buildfarmjob View In Hierarchy
Known subclasses: lp.code.interfaces.sourcepackagerecipebuild.ISourcePackageRecipeBuildSource, lp.snappy.interfaces.snapbuild.ISnapBuildSet, lp.soyuz.interfaces.binarypackagebuild.IBinaryPackageBuildSet, lp.soyuz.interfaces.livefsbuild.ILiveFSBuildSet, lp.translations.interfaces.translationtemplatesbuild.ITranslationTemplatesBuildSource
Implementations are registered with their BuildFarmJobType's name.
Method | getByID | Look up a concrete IBuildFarmJob by ID. |
Method | getByBuildFarmJobs | "Look up the concrete `IBuildFarmJob`s for a list of BuildFarmJobs. |
Method | getByBuildFarmJob | "Look up the concrete IBuildFarmJob for a BuildFarmJob. |
Method | addCandidateSelectionCriteria | Provide a sub-query to refine the candidate job selection. |
Method | postprocessCandidate | True if the candidate job is fine and should be dispatched |
IBuildFarmJob
by ID.Parameters | id | An ID of the concrete job class to look up. |
"Look up the concrete `IBuildFarmJob`s for a list of BuildFarmJobs. :param build_farm_jobs: A list of BuildFarmJobs for which to get the concrete jobs.
IBuildFarmJob
for a BuildFarmJob.Parameters | build_farm_job | A BuildFarmJob for which to get the concrete job. |
Return a sub-query to narrow down the list of candidate jobs.
The sub-query will become part of an "outer query" and is free to
refer to the BuildQueue
and BuildFarmJob
tables already utilized
in the latter.
Parameters | processor | the type of processor that the candidate jobs are expected to run on. |
virtualized | whether the candidate jobs are expected to run on
the processor natively or inside a virtual machine. | |
Returns | a string containing a sub-query that narrows down the list of candidate jobs. |