Add managed worker address fetching (#2244)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2022-07-07 19:02:16 -04:00
1 parent ca387223b8
commit 6b48346bf3
4 files changed
+340 -53

No files matched your search

@@ -11,6 +11,9 @@ service ServerCoordinationService {
// returns the status response which includes the changes the controller would like to make to
// jobs as well as provide a list of the controllers in the system.
rpc Status(StatusRequest) returns (StatusResponse) {}
// Returns the addresses of managed workers, if any
rpc ManagedWorkers(ManagedWorkersRequest) returns (ManagedWorkersResponse) {}
}
enum CONNECTIONSTATUS {
@@ -122,3 +125,20 @@ message StatusResponse {
// controller does not need to do a database lookup for the id using the name field.
string worker_id = 40; // @gotags: `class:"public"`
}
// WorkerInfo contains information about workers for the ManagedWorkerResponse message
message WorkerInfo {
// The id of the worker
string id = 1;
// The public address of the worker
string address = 2;
}
// A managed workers request. Empty for now.
message ManagedWorkersRequest {}
// A response containing worker information
message ManagedWorkersResponse {
repeated WorkerInfo workers = 1;
}