def addLatentWorker(self, worker): assert interfaces.ILatentWorker.providedBy(worker) for w in self.workers: if w == worker: break else: wfb = workerforbuilder.LatentWorkerForBuilder(worker, self) self.workers.append(wfb) self.botmaster.maybeStartBuildsForBuilder(self.name)
def addLatentWorker(self, worker): assert interfaces.ILatentWorker.providedBy(worker) for w in self.workers: if w == worker: break else: sb = workerforbuilder.LatentWorkerForBuilder(worker, self) self.builder_status.addPointEvent( ['added', 'latent', worker.workername]) self.workers.append(sb) self.botmaster.maybeStartBuildsForBuilder(self.name)