Documentation ¶
Index ¶
- Constants
- func FindBuildId(versioningData *persistencespb.VersioningData, buildId string) (setIndex, indexInSet int)
- func MakeDirectiveForActivityTask(stamp *commonpb.WorkerVersionStamp, useCompatibleVersion bool) *taskqueuespb.TaskVersionDirective
- func MakeDirectiveForWorkflowTask(stamp *commonpb.WorkerVersionStamp, lastWorkflowTaskStartedEventID int64) *taskqueuespb.TaskVersionDirective
- func StampIfUsingVersioning(stamp *commonpb.WorkerVersionStamp) *commonpb.WorkerVersionStamp
- func UnversionedBuildIdSearchAttribute(buildId string) string
- func VersionStampToBuildIdSearchAttribute(stamp *commonpb.WorkerVersionStamp) string
- func VersionedBuildIdSearchAttribute(buildId string) string
- func WorkflowsExistForBuildId(ctx context.Context, visibilityManager manager.VisibilityManager, ...) (bool, error)
Constants ¶
View Source
const ( BuildIdSearchAttributeDelimiter = ":" // UnversionedSearchAttribute is the sentinel value used to mark all unversioned workflows UnversionedSearchAttribute = buildIdSearchAttributePrefixUnversioned )
Variables ¶
This section is empty.
Functions ¶
func FindBuildId ¶
func FindBuildId(versioningData *persistencespb.VersioningData, buildId string) (setIndex, indexInSet int)
FindBuildId finds a build id in the version data's sets, returning (set index, index within that set). Returns -1, -1 if not found.
func MakeDirectiveForActivityTask ¶ added in v1.22.0
func MakeDirectiveForActivityTask( stamp *commonpb.WorkerVersionStamp, useCompatibleVersion bool, ) *taskqueuespb.TaskVersionDirective
func MakeDirectiveForWorkflowTask ¶ added in v1.22.0
func MakeDirectiveForWorkflowTask( stamp *commonpb.WorkerVersionStamp, lastWorkflowTaskStartedEventID int64, ) *taskqueuespb.TaskVersionDirective
func StampIfUsingVersioning ¶ added in v1.22.0
func StampIfUsingVersioning(stamp *commonpb.WorkerVersionStamp) *commonpb.WorkerVersionStamp
StampIfUsingVersioning returns the given WorkerVersionStamp if it is using versioning, otherwise returns nil.
func UnversionedBuildIdSearchAttribute ¶
VersionedBuildIdSearchAttribute returns the search attribute value for an versioned build id
func VersionStampToBuildIdSearchAttribute ¶
func VersionStampToBuildIdSearchAttribute(stamp *commonpb.WorkerVersionStamp) string
VersionStampToBuildIdSearchAttribute returns the search attribute value for a version stamp
func VersionedBuildIdSearchAttribute ¶
VersionedBuildIdSearchAttribute returns the search attribute value for an unversioned build id
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.