Skip to content

Commit 36f66e8

Browse files
committed
update comment
1 parent d56f343 commit 36f66e8

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

internal/client.go

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -603,15 +603,11 @@ type (
603603
Name string
604604
}
605605
// ActiveClusterSelectionPolicy defines the policy for selecting the active cluster to start the workflow execution on for active-active domains.
606-
// Active-active domains can be configured to be active in multiple clusters (at most one in a given region).
607-
// Individual workflows can be configured to be active in one of the active clusters of the domain.
608-
//
609-
// There are two supported strategies:
610-
// - Region sticky: The workflow will be active in the active cluster of the region that start workflow request is sent to.
611-
// - External entity: The workflow can be associated with an external entity which has a corresponding region.
612-
// The workflow will be considered active in the active cluster of the region that the external entity is in.
613-
// Cadence server must be aware of the external entity type used. Custom types can be registered following the documentation in
614-
// https://github.com/cadence-workflow/cadence/blob/master/docs/design/active-active/active-active.md
606+
// Active-active domains are domains having cluster attributes. Each cluster attribute have their own active cluster which can be different from domain's active cluster.
607+
// Workflows in active-active domains are divided into sub-groups by their cluster attributes.
608+
// A workflow can specify its cluster attribute by setting the active cluster selection policy in its start workflow request.
609+
// If no active cluster selection policy is provided or the cluster attribute is not found in domain's metadata,
610+
// the workflow's active cluster is the domain's active cluster.
615611
ActiveClusterSelectionPolicy struct {
616612
ClusterAttribute *ClusterAttribute
617613
}

0 commit comments

Comments
 (0)