l.b.manager : module documentation

Part of lp.buildmaster

Soyuz buildd slave manager logic.
Class BuilderFactory A dumb builder factory that just talks to the DB.
Class PrefetchedBuilderFactory A smart builder factory that does efficient bulk queries.
Function judge_failure Judge how to recover from a scan failure.
Function recover_failure Recover from a scan failure by slapping the builder or job.
Class SlaveScanner A manager for a single builder.
Class NewBuildersScanner If new builders appear, create a scanner for them.
Class BuilddManager Main Buildd Manager service class.
def judge_failure(builder_count, job_count, exc, retry=True):
Judge how to recover from a scan failure.

Assesses the failure counts of a builder and its current job, and determines the best course of action for recovery.

Parametersbuilder_count: Count of consecutive failures of the builder.
job_count: Count of consecutive failures of the job.
exc: Exception that caused the failure, if any.
retry: Whether to retry a few times without taking action.
ReturnsA tuple of (builder action, job action). True means reset, False means fail, None means take no action.
def recover_failure(logger, vitals, builder, retry, exception):
Recover from a scan failure by slapping the builder or job.
API Documentation for Launchpad, generated by pydoctor at 2018-05-27 00:00:04.