File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed
third_party/bazel/src/main/protobuf Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff 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.
4449message 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}
You can’t perform that action at this time.
0 commit comments