def getStatusStr(self): st = CProcessBase.getStatusStr(self) if st != None: return st if self.status > 2: return "%d" % (self.status) return "Not started"
def __init__(self, manager, name, host): CProcessBase.__init__(self, name, host) self.manager = manager self.messages = legacy.deque(maxlen=500) self.srcid = "remote.%s.%s" % (host.host.replace('.', '_'), name.replace('.', '_')) self._lock = threading.Lock()