aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/protobuf/master.proto
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/core/protobuf/master.proto')
-rw-r--r--tensorflow/core/protobuf/master.proto15
1 files changed, 15 insertions, 0 deletions
diff --git a/tensorflow/core/protobuf/master.proto b/tensorflow/core/protobuf/master.proto
index 6b25a86ba4..0437cb1b83 100644
--- a/tensorflow/core/protobuf/master.proto
+++ b/tensorflow/core/protobuf/master.proto
@@ -23,6 +23,7 @@ option java_package = "org.tensorflow.distruntime";
import "tensorflow/core/framework/device_attributes.proto";
import "tensorflow/core/framework/graph.proto";
+import "tensorflow/core/lib/core/error_codes.proto";
import "tensorflow/core/protobuf/config.proto";
import "tensorflow/core/protobuf/named_tensor.proto";
@@ -129,6 +130,13 @@ message RunStepRequest {
// Partial run handle (optional). If specified, this will be a partial run
// execution, run up to the specified fetches.
string partial_run_handle = 6;
+
+ // If true then some errors, e.g., execution errors that have long
+ // error messages, may return an OK RunStepResponse with the actual
+ // error saved in the status_code/status_error_message fields of the
+ // response body. This is a workaround since the RPC subsystem may
+ // truncate long metadata messages.
+ bool store_errors_in_response_body = 7;
}
message RunStepResponse {
@@ -138,6 +146,13 @@ message RunStepResponse {
// Returned metadata if requested in the options.
RunMetadata metadata = 2;
+
+ // If store_errors_in_response_body is true in the request, then
+ // optionally the server may return an OK status for the RPC and
+ // fill the true status into the fields below, to allow for messages
+ // that are too long to fit in metadata.
+ error.Code status_code = 3;
+ string status_error_message = 4;
}
////////////////////////////////////////////////////////////////////////////////