def buildFinished(self, sb): assert not sb.isBusy() if not self.building: if self.build_wait_timeout == 0: # we insubstantiate asynchronously to trigger more bugs with the fake reactor self.master.reactor.callLater(0, self.insubstantiate) # insubstantiate will automatically retry to create build for this worker else: self._setBuildWaitTimer() # AbstractWorker.buildFinished() will try to start the next build for that worker AbstractWorker.buildFinished(self, sb)
def buildFinished(self, sb): AbstractWorker.buildFinished(self, sb) if not self.building: if self.build_wait_timeout == 0: d = self.insubstantiate() # try starting builds for this worker after insubstantiating; # this will cause the worker to re-substantiate immediately if # there are pending build requests. d.addCallback(lambda _: self.botmaster.maybeStartBuildsForWorker(self.workername)) else: self._setBuildWaitTimer()
def buildFinished(self, wfb): assert not wfb.isBusy() if not self.building: if self.build_wait_timeout == 0: # we insubstantiate asynchronously to trigger more bugs with # the fake reactor self.master.reactor.callLater(0, self._soft_disconnect) # insubstantiate will automatically retry to create build for # this worker else: self._setBuildWaitTimer() # AbstractWorker.buildFinished() will try to start the next build for # that worker AbstractWorker.buildFinished(self, wfb)