@@ -4,14 +4,23 @@ import "go.temporal.io/sdk/internal"
44
55// VersioningIntent indicates whether the user intends certain commands to be run on
66// a compatible worker build ID version or not.
7+ //
8+ // Deprecated: Build-id based versioning is deprecated in favor of worker deployment based versioning
9+ //
710// WARNING: Worker versioning is currently experimental
11+ //
12+ //lint:ignore SA1019 ignore for SDK
813type VersioningIntent = internal.VersioningIntent
914
1015const (
1116 // VersioningIntentUnspecified indicates that the SDK should choose the most sensible default
1217 // behavior for the type of command, accounting for whether the command will be run on the same
1318 // task queue as the current worker.
19+ //
20+ // Deprecated: This has the same effect as [VersioningIntentInheritBuildID], use that instead.
21+ //
1422 // WARNING: Worker versioning is currently experimental
23+ //lint:ignore SA1019 ignore for SDK
1524 VersioningIntentUnspecified = internal .VersioningIntentUnspecified
1625 // VersioningIntentCompatible indicates that the command should run on a worker with compatible
1726 // version if possible. It may not be possible if the target task queue does not also have
@@ -29,11 +38,19 @@ const (
2938 // VersioningIntentInheritBuildID indicates the command should inherit the current Build ID of the
3039 // Workflow triggering it, and not use Assignment Rules. (Redirect Rules are still applicable)
3140 // This is the default behavior for commands running on the same Task Queue as the current worker.
41+ //
42+ // Deprecated: This has the same effect as [VersioningIntentInheritBuildID], use that instead.
43+ //
3244 // WARNING: Worker versioning is currently experimental
45+ //lint:ignore SA1019 ignore for SDK
3346 VersioningIntentInheritBuildID = internal .VersioningIntentInheritBuildID
3447 // VersioningIntentUseAssignmentRules indicates the command should use the latest Assignment Rules
3548 // to select a Build ID independently of the workflow triggering it.
3649 // This is the default behavior for commands not running on the same Task Queue as the current worker.
50+ //
51+ // Deprecated: This has the same effect as [VersioningIntentInheritBuildID], use that instead.
52+ //
3753 // WARNING: Worker versioning is currently experimental
54+ //lint:ignore SA1019 ignore for SDK
3855 VersioningIntentUseAssignmentRules = internal .VersioningIntentUseAssignmentRules
3956)
0 commit comments