def _grpc_launch_server(self) -> Optional[int]:
    'Launch grpc server and return port.'
    kwargs: Dict[(str, Any)] = dict(close_fds=True)
    pid = os.getpid()
    with tempfile.TemporaryDirectory() as tmpdir:
        fname = os.path.join(tmpdir, f'port-{pid}.txt')
        pid_str = str(os.getpid())
        exec_cmd_list = [sys.executable, '-m']
        if os.environ.get('COVERAGE_RCFILE'):
            exec_cmd_list += ['coverage', 'run', '-m']
        internal_proc = subprocess.Popen((exec_cmd_list + ['wandb', 'service', '--port-filename', fname, '--pid', pid_str, '--debug', 'true']), env=os.environ, **kwargs)
        port = self._grpc_wait_for_port(fname, proc=internal_proc)
    return port
Launch grpc server and return port.
def _grpc_launch_server(self) -> Optional[int]:
    
    kwargs: Dict[(str, Any)] = dict(close_fds=True)
    pid = os.getpid()
    with tempfile.TemporaryDirectory() as tmpdir:
        fname = os.path.join(tmpdir, f'port-{pid}.txt')
        pid_str = str(os.getpid())
        exec_cmd_list = [sys.executable, '-m']
        if os.environ.get('COVERAGE_RCFILE'):
            exec_cmd_list += ['coverage', 'run', '-m']
        internal_proc = subprocess.Popen((exec_cmd_list + ['wandb', 'service', '--port-filename', fname, '--pid', pid_str, '--debug', 'true']), env=os.environ, **kwargs)
        port = self._grpc_wait_for_port(fname, proc=internal_proc)
    return port