MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Start

Method Start

tensorflow/contrib/elastic_grpc_server/elastic_grpc_server_lib.cc:221–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221Status ElasticGrpcServer::Start() {
222 {
223 mutex_lock l(mu_);
224 switch (state_) {
225 case NEW: {
226 update_server_thread_.reset(
227 env_->StartThread(ThreadOptions(), "TF_elastic_service",
228 [this] { elastic_service_->HandleRPCsLoop(); }));
229 LOG(INFO) << "Started server with target: " << target();
230 break;
231 }
232 case STARTED:
233 LOG(INFO) << "Server already started (target: " << target() << ")";
234 return Status::OK();
235 case STOPPED:
236 return errors::FailedPrecondition("Server has stopped.");
237 default:
238 LOG(FATAL);
239 }
240 }
241 return GrpcServer::Start();
242}
243
244Status ElasticGrpcServer::Join() {
245 GrpcServer::Join();

Callers 1

TEST_FFunction · 0.45

Calls 5

ThreadOptionsClass · 0.85
FailedPreconditionFunction · 0.85
resetMethod · 0.45
StartThreadMethod · 0.45
HandleRPCsLoopMethod · 0.45

Tested by 1

TEST_FFunction · 0.36