Skip to content

Commit

Permalink
update to the latest worker protobuf file (bazelbuild#1007)
Browse files Browse the repository at this point in the history
  • Loading branch information
andyscott authored and Andre Rocha committed Jul 6, 2020
1 parent d52e8c7 commit b064766
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions third_party/bazel/src/main/protobuf/worker_protocol.proto
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,25 @@ message WorkRequest {
// The inputs that the worker is allowed to read during execution of this
// request.
repeated Input inputs = 2;

// To support multiplex worker, each WorkRequest must have an unique ID. This
// ID should be attached unchanged to the WorkResponse.
int32 request_id = 3;
}

// The worker sends this message to Blaze when it finished its work on the WorkRequest message.
// The worker sends this message to Blaze when it finished its work on the
// WorkRequest message.
message WorkResponse {
int32 exit_code = 1;

// This is printed to the user after the WorkResponse has been received and is supposed to contain
// compiler warnings / errors etc. - thus we'll use a string type here, which gives us UTF-8
// encoding.
// This is printed to the user after the WorkResponse has been received and is
// supposed to contain compiler warnings / errors etc. - thus we'll use a
// string type here, which gives us UTF-8 encoding.
string output = 2;

// To support multiplex worker, each WorkResponse must have an unique ID.
// Since worker processes which support multiplex worker will handle multiple
// WorkRequests in parallel, this ID will be used to determined which
// WorkerProxy does this WorkResponse belong to.
int32 request_id = 3;
}

0 comments on commit b064766

Please sign in to comment.