Skip to content

update to the latest worker protobuf file #1007

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}