def __init__(self, identity, workdir, nailgun_classpath, distribution, ins=None, connect_timeout=10, connect_attempts=5): Executor.__init__(self, distribution=distribution) ProcessManager.__init__(self, name=identity, process_name=self._PROCESS_NAME) if not isinstance(workdir, string_types): raise ValueError( 'Workdir must be a path string, not: {workdir}'.format( workdir=workdir)) self._identity = identity self._workdir = workdir self._ng_stdout = os.path.join(workdir, 'stdout') self._ng_stderr = os.path.join(workdir, 'stderr') self._nailgun_classpath = maybe_list(nailgun_classpath) self._ins = ins self._connect_timeout = connect_timeout self._connect_attempts = connect_attempts
def __init__(self, work_dir, log_level=1, watchman_path=None): ProcessManager.__init__(self, name='watchman', process_name='watchman', socket_type=str) self._logger = logging.getLogger(__name__) self._log_level = log_level self.watchman_path = self._resolve_watchman_path(watchman_path) # TODO(kwlzn): should these live in .pids or .pants.d? i.e. should watchman survive clean-all? self._work_dir = os.path.join(work_dir, self.name) self._state_file = os.path.join(self._work_dir, '{}.state'.format(self.name)) self._log_file = os.path.join(self._work_dir, '{}.log'.format(self.name)) self._sock_file = os.path.join(self._work_dir, '{}.sock'.format(self.name)) self._watchman_client = None
def __init__(self, identity, workdir, nailgun_classpath, distribution, ins=None, connect_timeout=10, connect_attempts=5): Executor.__init__(self, distribution=distribution) ProcessManager.__init__(self, name=identity, process_name=self._PROCESS_NAME) if not isinstance(workdir, string_types): raise ValueError('Workdir must be a path string, not: {workdir}'.format(workdir=workdir)) self._identity = identity self._workdir = workdir self._ng_stdout = os.path.join(workdir, 'stdout') self._ng_stderr = os.path.join(workdir, 'stderr') self._nailgun_classpath = maybe_list(nailgun_classpath) self._ins = ins self._connect_timeout = connect_timeout self._connect_attempts = connect_attempts
def __init__(self, work_dir, log_level=1, watchman_path=None): ProcessManager.__init__(self, name='watchman', process_name='watchman', socket_type=str) self._logger = logging.getLogger(__name__) self._log_level = log_level self.watchman_path = self._resolve_watchman_path(watchman_path) # TODO(kwlzn): should these live in .pids or .pants.d? i.e. should watchman survive clean-all? self._work_dir = os.path.join(work_dir, self.name) self._state_file = os.path.join(self._work_dir, '{}.state'.format(self.name)) self._log_file = os.path.join(self._work_dir, '{}.log'.format(self.name)) self._sock_file = os.path.join(self._work_dir, '{}.sock'.format(self.name)) self._watchman_client = None
def __init__(self, context=None, options=None): ProcessManager.__init__(self, name='reporting_server') self.context = context self.options = options
def __init__(self, context=None, options=None): ProcessManager.__init__(self, name='reporting_server') self.context = context self.options = options