Skip to content

Commit 4b039ed

Browse files
committed
mark old worker versioning APIs as deprecated
1 parent b5a9dc0 commit 4b039ed

File tree

5 files changed

+28
-1
lines changed

5 files changed

+28
-1
lines changed

temporal-sdk/src/main/java/io/temporal/client/BuildIdOperation.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* <p>See each public static method to learn about and construct the available operations.
1212
*/
1313
@Experimental
14+
@Deprecated
1415
public abstract class BuildIdOperation {
1516
private BuildIdOperation() {}
1617

temporal-sdk/src/main/java/io/temporal/client/WorkerBuildIdVersionSets.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@
77
import java.util.Optional;
88
import java.util.stream.Collectors;
99

10-
/** Represents the sets of compatible Build Ids associated with a particular task queue. */
10+
/** Represents the sets of compatible Build Ids associated with a particular task queue.
11+
*
12+
* @deprecated Worker Versioning is now deprecated please migrate to the <a
13+
* href="https://docs.temporal.io/worker-deployments">Worker Deployment API</a>.
14+
*/
1115
@Experimental
16+
@Deprecated
1217
public class WorkerBuildIdVersionSets {
1318

1419
/** Represents a set of Build Ids which are compatible with one another. */

temporal-sdk/src/main/java/io/temporal/client/WorkflowClient.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,12 @@ WorkflowStub newUntypedWorkflowStub(
345345
* @param operation The operation to perform. See {@link BuildIdOperation} for more.
346346
* @throws WorkflowServiceException for any failures including networking and service availability
347347
* issues.
348+
*
349+
* @deprecated Worker Versioning is now deprecated please migrate to the <a
350+
* href="https://docs.temporal.io/worker-deployments">Worker Deployment API</a>.
348351
*/
349352
@Experimental
353+
@Deprecated
350354
void updateWorkerBuildIdCompatability(
351355
@Nonnull String taskQueue, @Nonnull BuildIdOperation operation);
352356

@@ -357,8 +361,12 @@ void updateWorkerBuildIdCompatability(
357361
* @return The version set(s) for the task queue.
358362
* @throws WorkflowServiceException for any failures including networking and service availability
359363
* issues.
364+
*
365+
* @deprecated Worker Versioning is now deprecated please migrate to the <a
366+
* href="https://docs.temporal.io/worker-deployments">Worker Deployment API</a>.
360367
*/
361368
@Experimental
369+
@Deprecated
362370
WorkerBuildIdVersionSets getWorkerBuildIdCompatability(@Nonnull String taskQueue);
363371

364372
/**
@@ -373,8 +381,12 @@ void updateWorkerBuildIdCompatability(
373381
* @return The reachability information.
374382
* @throws WorkflowServiceException for any failures including networking and service availability
375383
* issues.
384+
*
385+
* @deprecated Worker Versioning is now deprecated please migrate to the <a
386+
* href="https://docs.temporal.io/worker-deployments">Worker Deployment API</a>.
376387
*/
377388
@Experimental
389+
@Deprecated
378390
WorkerTaskReachability getWorkerTaskReachability(
379391
@Nonnull Iterable<String> buildIds,
380392
@Nonnull Iterable<String> taskQueues,

temporal-sdk/src/main/java/io/temporal/internal/client/external/GenericWorkflowClient.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ DescribeWorkflowExecutionResponse describeWorkflowExecution(
6262
DescribeWorkflowExecutionRequest request);
6363

6464
@Experimental
65+
@Deprecated
6566
UpdateWorkerBuildIdCompatibilityResponse updateWorkerBuildIdCompatability(
6667
UpdateWorkerBuildIdCompatibilityRequest request);
6768

@@ -70,9 +71,11 @@ ExecuteMultiOperationResponse executeMultiOperation(
7071
ExecuteMultiOperationRequest request, @Nonnull Deadline deadline);
7172

7273
@Experimental
74+
@Deprecated
7375
GetWorkerBuildIdCompatibilityResponse getWorkerBuildIdCompatability(
7476
GetWorkerBuildIdCompatibilityRequest req);
7577

7678
@Experimental
79+
@Deprecated
7780
GetWorkerTaskReachabilityResponse GetWorkerTaskReachability(GetWorkerTaskReachabilityRequest req);
7881
}

temporal-sdk/src/main/java/io/temporal/worker/WorkerOptions.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,9 @@ public Builder setDisableEagerExecution(boolean disableEagerExecution) {
376376
* will only receive tasks which it is compatible with.
377377
*
378378
* <p>Defaults to false
379+
*
380+
* @deprecated Worker Versioning is now deprecated please migrate to the <a
381+
* href="https://docs.temporal.io/worker-deployments">Worker Deployment API</a>.
379382
*/
380383
@Experimental
381384
@Deprecated
@@ -389,6 +392,9 @@ public Builder setUseBuildIdForVersioning(boolean useBuildIdForVersioning) {
389392
* code the worker uses for workflows, activities, and interceptors.
390393
*
391394
* <p>A Build Id must be set if {@link #setUseBuildIdForVersioning(boolean)} is set true.
395+
*
396+
* @deprecated Worker Versioning is now deprecated please migrate to the <a
397+
* href="https://docs.temporal.io/worker-deployments">Worker Deployment API</a>.
392398
*/
393399
@Experimental
394400
@Deprecated

0 commit comments

Comments
 (0)