Skip to content

Commit 069dec9

Browse files
authored
Add Proto Fields for listing pending runners (#589)
* Add State to RunnerInfo * add list_pending option to request * add list_pending arg to ListAliasRunnersRequest * proto compile * change state to enum type
1 parent 7ca4164 commit 069dec9

File tree

3 files changed

+65
-26
lines changed

3 files changed

+65
-26
lines changed

projects/isolate_proto/src/isolate_proto/controller.proto

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ message ListSecretsResponse {
326326

327327
message ListAliasRunnersRequest {
328328
string alias = 1;
329+
optional bool list_pending = 2;
329330
}
330331

331332
message ListAliasRunnersResponse {
@@ -340,14 +341,22 @@ message RunnerInfo {
340341
string revision = 6;
341342
string alias = 7;
342343
optional google.protobuf.Struct external_metadata = 5;
344+
345+
enum State {
346+
RUNNING = 0;
347+
348+
PENDING = 1;
349+
}
350+
351+
optional State state = 8;
343352
}
344353

345354
message KillRunnerRequest {
346355
string runner_id = 1;
347356
}
348357

349358
message ListRunnersRequest {
350-
// Empty. For future use.
359+
optional bool list_pending = 1;
351360
}
352361

353362
message ListRunnersResponse {

0 commit comments

Comments
 (0)