- def call(self, name, command, callback=None, persist=False, *args, **kw):
- log.debug(u'ProcessManager.call(%s, %s, %s, %s, %s, %s)',
- name, command, callback, persist, args, kw)
- pi = ProcessInfo(name, command, callback, persist, args, kw)
+ def once(self, name, command, callback=None, persist=False,
+ max_errors=3, *args, **kwargs):
+ log.debug(u'ProcessManager.once(%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)