This check is against both current running processes (namemap) and the
registered processes (services) to ensure that the name is unique and so
process gets overriden.
max_errors=3, *args, **kwargs):
log.debug(u'ProcessManager.register(%s, %s, %s, %s, %s, %s, %s)',
name, command, callback, persist, max_errors, args, kwargs)
max_errors=3, *args, **kwargs):
log.debug(u'ProcessManager.register(%s, %s, %s, %s, %s, %s, %s)',
name, command, callback, persist, max_errors, args, kwargs)
+ assert not self.has(name)
self.services[name] = ProcessInfo(name, command, callback, persist,
max_errors, args, kwargs)
self.services[name] = ProcessInfo(name, command, callback, persist,
max_errors, args, kwargs)
max_errors=3, *args, **kwargs):
log.debug(u'ProcessManager.call(%s, %s, %s, %s, %s, %s, %s)',
name, command, callback, persist, max_errors, args, kwargs)
max_errors=3, *args, **kwargs):
log.debug(u'ProcessManager.call(%s, %s, %s, %s, %s, %s, %s)',
name, command, callback, persist, max_errors, args, kwargs)
+ assert not self.has(name)
pi = ProcessInfo(name, command, callback, persist, max_errors,
args, kwargs)
self._call(pi)
pi = ProcessInfo(name, command, callback, persist, max_errors,
args, kwargs)
self._call(pi)