1 /* Copyright 2021 The TensorFlow Authors. All Rights Reserved. 2 3 Licensed under the Apache License, Version 2.0 (the "License"); 4 you may not use this file except in compliance with the License. 5 You may obtain a copy of the License at 6 7 http://www.apache.org/licenses/LICENSE-2.0 8 9 Unless required by applicable law or agreed to in writing, software 10 distributed under the License is distributed on an "AS IS" BASIS, 11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 See the License for the specific language governing permissions and 13 limitations under the License. 14 ==============================================================================*/ 15 16 #ifndef TENSORFLOW_CORE_DISTRIBUTED_RUNTIME_ERROR_PAYLOADS_H_ 17 #define TENSORFLOW_CORE_DISTRIBUTED_RUNTIME_ERROR_PAYLOADS_H_ 18 19 // This file lists the proto payloads that may be inserted by the code within 20 // `tensorflow/core/distributed_runtime/` into Status instances. 21 22 namespace tensorflow { 23 24 // Proto: tensorflow::distributed_runtime::GrpcPayloadsLost 25 // Location: tensorflow/core/protobuf/distributed_runtime_payloads.proto 26 // Usage: Flags the Status to have lost payloads during GRPC conversion. 27 constexpr char kGrpcPayloadsLost[] = 28 "type.googleapis.com/tensorflow.distributed_runtime.GrpcPayloadsLost"; 29 30 // Proto: tensorflow::distributed_runtime::WorkerPossiblyRestarted 31 // Location: tensorflow/core/protobuf/distributed_runtime_payloads.proto 32 // Usage: Flags the Status to be a possible outcome of a worker restart. 33 constexpr char kWorkerPossiblyRestarted[] = 34 "type.googleapis.com/" 35 "tensorflow.distributed_runtime.WorkerPossiblyRestarted"; 36 37 constexpr char kWorkerPreemption[] = 38 "type.googleapis.com/tensorflow.distributed_runtime.WorkerPreemption"; 39 40 } // namespace tensorflow 41 #endif // TENSORFLOW_CORE_DISTRIBUTED_RUNTIME_ERROR_PAYLOADS_H_ 42