| 943 | } |
| 944 | |
| 945 | Status Service::WaitForExecution(const WaitForExecutionRequest* arg, |
| 946 | WaitForExecutionResponse* result) { |
| 947 | TF_ASSIGN_OR_RETURN(const auto execution, |
| 948 | execution_tracker_.Resolve(arg->execution())); |
| 949 | |
| 950 | TF_RETURN_IF_ERROR(execution->BlockUntilDone()); |
| 951 | |
| 952 | *result->mutable_output() = execution->result(); |
| 953 | *result->mutable_profile() = execution->profile(); |
| 954 | |
| 955 | TF_RETURN_IF_ERROR(execution_tracker_.Unregister(arg->execution())); |
| 956 | VLOG(1) << "successfully completed 'wait-for-execution' request"; |
| 957 | return Status::OK(); |
| 958 | } |
| 959 | |
| 960 | Status Service::TransferToClient(const TransferToClientRequest* arg, |
| 961 | TransferToClientResponse* result) { |
nothing calls this directly
no test coverage detected