Skip to content

Commit 444d7f9

Browse files
authored
docs: Specify default VersioningIntent (#1278)
1 parent bcde021 commit 444d7f9

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

packages/common/src/activity-options.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ export interface ActivityOptions {
106106
* When using the Worker Versioning feature, specifies whether this Activity should run on a
107107
* worker with a compatible Build Id or not. See {@link VersioningIntent}.
108108
*
109+
* @default 'COMPATIBLE'
110+
*
109111
* @experimental
110112
*/
111113
versioningIntent?: VersioningIntent;

packages/common/src/versioning-intent.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
/**
2-
* Indicates whether the user intends certain commands to be run on a compatible worker Build Id
3-
* version or not.
2+
* Indicates whether the user intends certain commands to be run on a compatible worker Build Id version or not.
43
*
5-
* `COMPATIBLE` indicates that the command should run on a worker with compatible version if
6-
* possible. It may not be possible if the target task queue does not also have knowledge of the
7-
* current worker's Build Id.
4+
* `COMPATIBLE` indicates that the command should run on a worker with compatible version if possible. It may not be
5+
* possible if the target task queue does not also have knowledge of the current worker's Build Id.
86
*
9-
* `DEFAULT` indicates that the command should run on the target task queue's current
10-
* overall-default Build Id.
7+
* `DEFAULT` indicates that the command should run on the target task queue's current overall-default Build Id.
118
*
12-
* Where this type is accepted optionally, an unset value indicates that the SDK should choose the
13-
* most sensible default behavior for the type of command, accounting for whether the command will
14-
* be run on the same task queue as the current worker.
9+
* Where this type is accepted optionally, an unset value indicates that the SDK should choose the most sensible default
10+
* behavior for the type of command, accounting for whether the command will be run on the same task queue as the
11+
* current worker. The default behavior for starting Workflows is `DEFAULT`. The default behavior for Workflows starting
12+
* Activities, starting Child Workflows, or Continuing As New is `COMPATIBLE`.
1513
*
1614
* @experimental
1715
*/

packages/workflow/src/interfaces.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ export interface ContinueAsNewOptions {
231231
* When using the Worker Versioning feature, specifies whether this Workflow should
232232
* Continue-as-New onto a worker with a compatible Build Id or not. See {@link VersioningIntent}.
233233
*
234+
* @default 'COMPATIBLE'
235+
*
234236
* @experimental
235237
*/
236238
versioningIntent?: VersioningIntent;
@@ -341,6 +343,8 @@ export interface ChildWorkflowOptions extends CommonWorkflowOptions {
341343
* When using the Worker Versioning feature, specifies whether this Child Workflow should run on
342344
* a worker with a compatible Build Id or not. See {@link VersioningIntent}.
343345
*
346+
* @default 'COMPATIBLE'
347+
*
344348
* @experimental
345349
*/
346350
versioningIntent?: VersioningIntent;

0 commit comments

Comments
 (0)