Skip to content

Commit cfa1a15

Browse files
authored
Add operation for merging sets to build ID api (#297)
1 parent 5545fae commit cfa1a15

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

temporal/api/workflowservice/v1/request_response.proto

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,6 +1084,13 @@ message UpdateWorkerBuildIdCompatibilityRequest {
10841084
bool make_set_default = 3;
10851085
}
10861086

1087+
message MergeSets {
1088+
// A build ID in the set whose default will become the merged set default
1089+
string primary_set_build_id = 1;
1090+
// A build ID in the set which will be merged into the primary set
1091+
string secondary_set_build_id = 2;
1092+
}
1093+
10871094
string namespace = 1;
10881095
// Must be set, the task queue to apply changes to. Because all workers on a given task queue
10891096
// must have the same set of workflow & activity implementations, there is no reason to specify
@@ -1110,6 +1117,12 @@ message UpdateWorkerBuildIdCompatibilityRequest {
11101117
// (-- api-linter: core::0140::prepositions=disabled
11111118
// aip.dev/not-precedent: Within makes perfect sense here. --)
11121119
string promote_build_id_within_set = 6;
1120+
// Merge two existing sets together, thus declaring all build IDs in both sets compatible
1121+
// with one another. The primary set's default will become the default for the merged set.
1122+
// This is useful if you've accidentally declared a new ID as incompatible you meant to
1123+
// declare as compatible. The unusual case of incomplete replication during failover could
1124+
// also result in a split set, which this operation can repair.
1125+
MergeSets merge_sets = 7;
11131126
}
11141127
}
11151128
message UpdateWorkerBuildIdCompatibilityResponse {

0 commit comments

Comments
 (0)