@@ -950,3 +950,48 @@ message ListSchedulesResponse {
950950 repeated temporal.api.schedule.v1.ScheduleListEntry schedules = 1 ;
951951 bytes next_page_token = 2 ;
952952}
953+
954+ // (-- api-linter: core::0134::request-mask-required=disabled
955+ // aip.dev/not-precedent: UpdateWorkerBuildIdOrderingRequest doesn't follow Google API format --)
956+ // (-- api-linter: core::0134::request-resource-required=disabled
957+ // aip.dev/not-precedent: UpdateWorkerBuildIdOrderingRequest RPC doesn't follow Google API format. --)
958+ message UpdateWorkerBuildIdOrderingRequest {
959+ string namespace = 1 ;
960+ // Must be set, the task queue to apply changes to. Because all workers on
961+ // a given task queue must have the same set of workflow & activity
962+ // implementations, there is no reason to specify a task queue type here.
963+ string task_queue = 2 ;
964+ // The version id we are targeting.
965+ temporal.api.taskqueue.v1.VersionId version_id = 3 ;
966+ // When set, indicates that the `version_id` in this message is compatible
967+ // with the one specified in this field. Because compatability should form
968+ // a DAG, any build id can only be the "next compatible" version for one
969+ // other ID of a certain type at a time, and any setting which would create a cycle is invalid.
970+ temporal.api.taskqueue.v1.VersionId previous_compatible = 4 ;
971+ // When set, establishes the specified `version_id` as the default of it's type
972+ // for the queue. Workers matching it will begin processing new workflow executions.
973+ // The existing default will be marked as a previous incompatible version
974+ // to this one, assuming it is not also in `is_compatible_with`.
975+ bool become_default = 5 ;
976+ }
977+ message UpdateWorkerBuildIdOrderingResponse {}
978+
979+ // (-- api-linter: core::0134::request-resource-required=disabled
980+ // aip.dev/not-precedent: GetWorkerBuildIdOrderingRequest RPC doesn't follow Google API format. --)
981+ message GetWorkerBuildIdOrderingRequest {
982+ string namespace = 1 ;
983+ // Must be set, the task queue to interrogate about worker id ordering
984+ string task_queue = 2 ;
985+ // Limits how deep the returned DAG will go. 1 will return only the
986+ // default build id. A default/0 value will return the entire graph.
987+ int32 max_depth = 3 ;
988+ }
989+ message GetWorkerBuildIdOrderingResponse {
990+ // The currently established default version
991+ temporal.api.taskqueue.v1.VersionIdNode current_default = 1 ;
992+ // Other current latest-compatible versions who are not the overall default. These are the
993+ // versions that will be used when generating new tasks by following the graph from the
994+ // version of the last task out to a leaf.
995+ repeated temporal.api.taskqueue.v1.VersionIdNode compatible_leaves = 2 ;
996+ }
997+
0 commit comments