Skip to content

Commit 6c2f815

Browse files
authored
deprecate v1 and v2 versioning things (#2174)
1 parent 797f179 commit 6c2f815

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

internal/activity.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ type (
146146

147147
// VersioningIntent - Specifies whether this activity should run on a worker with a compatible
148148
// build ID or not. See temporal.VersioningIntent.
149-
// WARNING: Worker versioning is currently experimental
149+
//
150+
// Deprecated: Use Worker Deployment Versioning instead. See https://docs.temporal.io/worker-versioning
150151
VersioningIntent VersioningIntent
151152

152153
// Summary is a single-line summary for this activity that will appear in UI/CLI. This can be

internal/error.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ type (
191191

192192
// VersioningIntent specifies whether the continued workflow should run on a worker with a
193193
// compatible build ID or not. See VersioningIntent.
194+
//
195+
// Deprecated: Use Worker Deployment Versioning instead. See https://docs.temporal.io/worker-versioning
194196
VersioningIntent VersioningIntent
195197

196198
// This is by default nil but may be overridden using NewContinueAsNewErrorWithOptions.

internal/internal_worker.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,13 @@ type (
134134
Identity string
135135

136136
// The worker's build ID used for versioning, if one was set.
137+
//
138+
// Deprecated: use DeploymentOptions.Version for versioning instead.
137139
WorkerBuildID string
138140

139141
// If true the worker is opting in to build ID based versioning.
142+
//
143+
// Deprecated: use DeploymentOptions.UseVersioning for versioning instead.
140144
UseBuildIDForVersioning bool
141145

142146
// Worker deployment options containing all deployment versioning configuration.

0 commit comments

Comments
 (0)