fn: lb-agent & runner gRPC updates (#1005)

Breaking changes:

*) Removed unused ACK/NACK definitions
*) Extended Finished messages with error code/str
This commit is contained in:
Tolga Ceylan
2018-05-17 15:02:15 -07:00
committed by GitHub
parent 7cf8e2a61d
commit 77086ecc24
4 changed files with 104 additions and 174 deletions

View File

@@ -7,13 +7,6 @@ message TryCall {
string models_call_json = 1;
}
// Call has been accepted and a slot allocated, or it's been rejected
message CallAcknowledged {
bool committed = 1;
string details = 2;
string slot_allocation_latency = 3;
}
// Data sent C2S and S2C - as soon as the runner sees the first of these it
// will start running. If empty content, there must be one of these with eof.
// The runner will send these for the body of the response, AFTER it has sent
@@ -45,9 +38,10 @@ message CallResultStart {
message CallFinished {
bool success = 1;
string details = 2;
int32 errorCode = 3;
string errorStr = 4;
}
message ClientMsg {
oneof body {
TryCall try = 1;
@@ -57,10 +51,9 @@ message ClientMsg {
message RunnerMsg {
oneof body {
CallAcknowledged acknowledged = 1;
CallResultStart result_start = 2;
DataFrame data = 3;
CallFinished finished = 4;
CallResultStart result_start = 1;
DataFrame data = 2;
CallFinished finished = 3;
}
}