mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user