Пример #1
0
 def PrepRuntimeEnv(self, request,
                    context=None) -> ray_client_pb2.PrepRuntimeEnvResponse:
     job_config = ray.worker.global_worker.core_worker.get_job_config()
     missing_uris = self._prepare_runtime_env(job_config.runtime_env)
     if len(missing_uris) != 0:
         raise grpc.RpcError(f"Missing uris: {missing_uris}")
     return ray_client_pb2.PrepRuntimeEnvResponse()
Пример #2
0
 def PrepRuntimeEnv(self, request,
                    context=None) -> ray_client_pb2.PrepRuntimeEnvResponse:
     job_config = ray.worker.global_worker.core_worker.get_job_config()
     try:
         self._prepare_runtime_env(job_config.runtime_env)
     except Exception as e:
         raise grpc.RpcError(f"Prepare runtime env failed with {e}")
     return ray_client_pb2.PrepRuntimeEnvResponse()