def stop_instance(self, fast=False): log.msg("Attempting to stop '%s'" % self.name) retval = yield utils.getProcessValue(self.stop_script[0], self.stop_script[1:]) log.msg("slave destroyed (%s): Forcing its connection closed." % self.name) yield AbstractBuildSlave.disconnect(self) log.msg( "We forced disconnection (%s), cleaning up and triggering new build" % self.name) self.botmaster.maybeStartBuildsForSlave(self.name) defer.returnValue(retval == 0)
def _disconnect(res): log.msg("VM destroyed (%s): Forcing its connection closed." % self.name) return AbstractBuildSlave.disconnect(self)