示例#1
0
 def stopService(self):
     # the worker might be insubstantiating from buildWaitTimeout
     while self.insubstantiating:
         yield asyncSleep(0.1)
     if self.conn is not None or self._substantiation_notifier:
         yield self._soft_disconnect()
     self._clearBuildWaitTimer()
     res = yield AbstractWorker.stopService(self)
     defer.returnValue(res)
示例#2
0
文件: latent.py 项目: mv740/buildbot
    def stopService(self):
        # the worker might be insubstantiating from buildWaitTimeout
        if self.state in [
                States.INSUBSTANTIATING, States.INSUBSTANTIATING_SUBSTANTIATING
        ]:
            yield self._insubstantiation_notifier.wait()

        if self.conn is not None or self.state in [
                States.SUBSTANTIATING, States.SUBSTANTIATED
        ]:
            yield self._soft_disconnect()
        self._clearBuildWaitTimer()
        res = yield AbstractWorker.stopService(self)
        return res
示例#3
0
 def stopService(self):
     if self.conn is not None or self._substantiation_notifier:
         yield self._soft_disconnect()
     res = yield AbstractWorker.stopService(self)
     defer.returnValue(res)
示例#4
0
 def stopService(self):
     if self.conn is not None or self._substantiation_notifier:
         yield self._soft_disconnect()
     res = yield AbstractWorker.stopService(self)
     defer.returnValue(res)