Skip to content

Commit ca9d2d2

Browse files
authored
feat: Expose cluster attribute type (#1470)
1 parent 50d3f68 commit ca9d2d2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

client/client.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ type (
9292
// Valid values are QueryConsistencyLevelEventual (served by the receiving cluster), and QueryConsistencyLevelStrong (redirects to the active cluster).
9393
QueryConsistencyLevel = internal.QueryConsistencyLevel
9494

95+
// ClusterAttribute represents a secondary attribute of global domains. Each domain can have multiple cluster attributes and each cluster attribute manages its own
96+
// active cluster independently. It provides a way to split workflows from a domain into sub-domains by, distinguished by cluster attributes.
97+
ClusterAttribute = internal.ClusterAttribute
98+
9599
// ActiveClusterSelectionPolicy - Policy for selecting the active cluster to start the workflow execution on for active-active domains.
96100
// An example policy is:
97101
// {
@@ -101,7 +105,7 @@ type (
101105
// }
102106
// }
103107
// The workflow will be active in the corresponding active cluster of that cluster attribute specified in the policy
104-
// If the policy is empty or nil, the workflow will be active in the domain's active cluster.
108+
// If the policy is empty or nil or the cluster attribute doesn't exist, the workflow will be active in the domain's active cluster.
105109
ActiveClusterSelectionPolicy = internal.ActiveClusterSelectionPolicy
106110

107111
// CancelOption values are functional options for the CancelWorkflow method.

0 commit comments

Comments
 (0)