Skip to content

Commit 3d1dcd4

Browse files
authored
update to the latest worker protobuf file (#1007)
1 parent 926aaca commit 3d1dcd4

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

third_party/bazel/src/main/protobuf/worker_protocol.proto

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,25 @@ message WorkRequest {
3838
// The inputs that the worker is allowed to read during execution of this
3939
// request.
4040
repeated Input inputs = 2;
41+
42+
// To support multiplex worker, each WorkRequest must have an unique ID. This
43+
// ID should be attached unchanged to the WorkResponse.
44+
int32 request_id = 3;
4145
}
4246

43-
// The worker sends this message to Blaze when it finished its work on the WorkRequest message.
47+
// The worker sends this message to Blaze when it finished its work on the
48+
// WorkRequest message.
4449
message WorkResponse {
4550
int32 exit_code = 1;
4651

47-
// This is printed to the user after the WorkResponse has been received and is supposed to contain
48-
// compiler warnings / errors etc. - thus we'll use a string type here, which gives us UTF-8
49-
// encoding.
52+
// This is printed to the user after the WorkResponse has been received and is
53+
// supposed to contain compiler warnings / errors etc. - thus we'll use a
54+
// string type here, which gives us UTF-8 encoding.
5055
string output = 2;
56+
57+
// To support multiplex worker, each WorkResponse must have an unique ID.
58+
// Since worker processes which support multiplex worker will handle multiple
59+
// WorkRequests in parallel, this ID will be used to determined which
60+
// WorkerProxy does this WorkResponse belong to.
61+
int32 request_id = 3;
5162
}

0 commit comments

Comments
 (0)