コード例 #1
0
ファイル: latent.py プロジェクト: JPMMaia/buildbot
 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
ファイル: latent.py プロジェクト: arceduardvincent/buildbot
 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)