Skip to content

Commit 6ae9b43

Browse files
committed
Merge origin/master into standalone-nexus-op
2 parents a795eb3 + 54414e1 commit 6ae9b43

6 files changed

Lines changed: 424 additions & 1 deletion

File tree

openapi/openapiv2.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9902,6 +9902,10 @@
99029902
"selector": {
99039903
"$ref": "#/definitions/v1WorkerSelector",
99049904
"description": "Defines which workers should receive this command.\nonly single worker is supported at this time."
9905+
},
9906+
"resourceId": {
9907+
"type": "string",
9908+
"description": "Resource ID for routing. Contains the worker grouping key."
99059909
}
99069910
}
99079911
},
@@ -10015,6 +10019,10 @@
1001510019
"identity": {
1001610020
"type": "string",
1001710021
"title": "The identity of the worker/client"
10022+
},
10023+
"resourceId": {
10024+
"type": "string",
10025+
"description": "Resource ID for routing. Contains the workflow ID or activity ID for standalone activities."
1001810026
}
1001910027
}
1002010028
},
@@ -10032,6 +10040,10 @@
1003210040
"identity": {
1003310041
"type": "string",
1003410042
"title": "The identity of the worker/client"
10043+
},
10044+
"resourceId": {
10045+
"type": "string",
10046+
"description": "Resource ID for routing. Contains \"workflow:workflow_id\" or \"activity:activity_id\" for standalone activities."
1003510047
}
1003610048
}
1003710049
},
@@ -10048,6 +10060,10 @@
1004810060
"type": "object",
1004910061
"$ref": "#/definitions/v1WorkerHeartbeat"
1005010062
}
10063+
},
10064+
"resourceId": {
10065+
"type": "string",
10066+
"description": "Resource ID for routing. Contains the worker grouping key."
1005110067
}
1005210068
}
1005310069
},
@@ -10238,6 +10254,10 @@
1023810254
"type": "string",
1023910255
"title": "The identity of the worker/client"
1024010256
},
10257+
"resourceId": {
10258+
"type": "string",
10259+
"description": "Resource ID for routing. Contains the workflow ID or activity ID for standalone activities."
10260+
},
1024110261
"workerVersion": {
1024210262
"$ref": "#/definitions/v1WorkerVersionStamp",
1024310263
"description": "Version info of the worker who processed this task. This message's `build_id` field should\nalways be set by SDKs. Workers opting into versioning will also set the `use_versioning`\nfield to true. See message docstrings for more.\nDeprecated. Use `deployment_options` instead."
@@ -10270,6 +10290,10 @@
1027010290
"deploymentOptions": {
1027110291
"$ref": "#/definitions/v1WorkerDeploymentOptions",
1027210292
"description": "Worker deployment options that user has set in the worker."
10293+
},
10294+
"resourceId": {
10295+
"type": "string",
10296+
"description": "Resource ID for routing. Contains \"workflow:workflow_id\" or \"activity:activity_id\" for standalone activities."
1027310297
}
1027410298
}
1027510299
},
@@ -10289,6 +10313,10 @@
1028910313
"type": "string",
1029010314
"title": "The identity of the worker/client"
1029110315
},
10316+
"resourceId": {
10317+
"type": "string",
10318+
"description": "Resource ID for routing. Contains the workflow ID or activity ID for standalone activities."
10319+
},
1029210320
"workerVersion": {
1029310321
"$ref": "#/definitions/v1WorkerVersionStamp",
1029410322
"description": "Version info of the worker who processed this task. This message's `build_id` field should\nalways be set by SDKs. Workers opting into versioning will also set the `use_versioning`\nfield to true. See message docstrings for more.\nDeprecated. Use `deployment_options` instead."
@@ -10317,6 +10345,10 @@
1031710345
"identity": {
1031810346
"type": "string",
1031910347
"title": "The identity of the worker/client"
10348+
},
10349+
"resourceId": {
10350+
"type": "string",
10351+
"description": "Resource ID for routing. Contains \"workflow:workflow_id\" or \"activity:activity_id\" for standalone activities."
1032010352
}
1032110353
}
1032210354
},
@@ -10336,6 +10368,10 @@
1033610368
"type": "string",
1033710369
"title": "The identity of the worker/client"
1033810370
},
10371+
"resourceId": {
10372+
"type": "string",
10373+
"description": "Resource ID for routing. Contains the workflow ID or activity ID for standalone activities."
10374+
},
1033910375
"lastHeartbeatDetails": {
1034010376
"$ref": "#/definitions/v1Payloads",
1034110377
"title": "Additional details to be stored as last activity heartbeat"
@@ -10372,6 +10408,10 @@
1037210408
"lastHeartbeatDetails": {
1037310409
"$ref": "#/definitions/v1Payloads",
1037410410
"title": "Additional details to be stored as last activity heartbeat"
10411+
},
10412+
"resourceId": {
10413+
"type": "string",
10414+
"description": "Resource ID for routing. Contains \"workflow:workflow_id\" or \"activity:activity_id\" for standalone activities."
1037510415
}
1037610416
}
1037710417
},
@@ -11233,6 +11273,10 @@
1123311273
"selector": {
1123411274
"$ref": "#/definitions/v1WorkerSelector",
1123511275
"description": "Defines which workers should receive this command."
11276+
},
11277+
"resourceId": {
11278+
"type": "string",
11279+
"description": "Resource ID for routing. Contains the worker grouping key."
1123611280
}
1123711281
}
1123811282
},
@@ -12969,6 +13013,15 @@
1296913013
}
1297013014
}
1297113015
},
13016+
"v1DeclinedTargetVersionUpgrade": {
13017+
"type": "object",
13018+
"properties": {
13019+
"deploymentVersion": {
13020+
"$ref": "#/definitions/v1WorkerDeploymentVersion"
13021+
}
13022+
},
13023+
"description": "Wrapper for a target deployment version that the SDK declined to upgrade to.\nSee declined_target_version_upgrade on WorkflowExecutionStartedEventAttributes."
13024+
},
1297213025
"v1DeleteNexusEndpointResponse": {
1297313026
"type": "object"
1297413027
},
@@ -18937,6 +18990,10 @@
1893718990
"eagerExecutionAccepted": {
1893818991
"type": "boolean",
1893918992
"description": "A boolean indicating whether the SDK has asked to eagerly execute the first workflow task for this workflow and\neager execution was accepted by the server.\nOnly populated by server with version >= 1.29.0."
18993+
},
18994+
"declinedTargetVersionUpgrade": {
18995+
"$ref": "#/definitions/v1DeclinedTargetVersionUpgrade",
18996+
"description": "During a previous run of this workflow, the server may have notified the SDK\nthat the Target Worker Deployment Version changed, but the SDK declined to\nupgrade (e.g., by continuing-as-new with PINNED behavior). This field records\nthe target version that was declined.\n\nThis is a wrapper message to distinguish \"never declined\" (nil wrapper) from\n\"declined an unversioned target\" (non-nil wrapper with nil deployment_version).\n\nUsed internally by the server during continue-as-new and retry.\nShould not be read or interpreted by SDKs."
1894018997
}
1894118998
},
1894218999
"title": "Always the first event in workflow history"

openapi/openapiv3.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9895,6 +9895,14 @@ components:
98959895
data:
98969896
type: string
98979897
format: bytes
9898+
DeclinedTargetVersionUpgrade:
9899+
type: object
9900+
properties:
9901+
deploymentVersion:
9902+
$ref: '#/components/schemas/WorkerDeploymentVersion'
9903+
description: |-
9904+
Wrapper for a target deployment version that the SDK declined to upgrade to.
9905+
See declined_target_version_upgrade on WorkflowExecutionStartedEventAttributes.
98989906
DeleteNexusEndpointResponse:
98999907
type: object
99009908
properties: {}
@@ -10540,6 +10548,9 @@ components:
1054010548
description: |-
1054110549
Defines which workers should receive this command.
1054210550
only single worker is supported at this time.
10551+
resourceId:
10552+
type: string
10553+
description: Resource ID for routing. Contains the worker grouping key.
1054310554
FetchWorkerConfigResponse:
1054410555
type: object
1054510556
properties:
@@ -12849,6 +12860,9 @@ components:
1284912860
identity:
1285012861
type: string
1285112862
description: The identity of the worker/client
12863+
resourceId:
12864+
type: string
12865+
description: Resource ID for routing. Contains "workflow:workflow_id" or "activity:activity_id" for standalone activities.
1285212866
RecordActivityTaskHeartbeatByIdResponse:
1285312867
type: object
1285412868
properties:
@@ -12881,6 +12895,9 @@ components:
1288112895
description: The identity of the worker/client
1288212896
namespace:
1288312897
type: string
12898+
resourceId:
12899+
type: string
12900+
description: Resource ID for routing. Contains the workflow ID or activity ID for standalone activities.
1288412901
RecordActivityTaskHeartbeatResponse:
1288512902
type: object
1288612903
properties:
@@ -12910,6 +12927,9 @@ components:
1291012927
type: array
1291112928
items:
1291212929
$ref: '#/components/schemas/WorkerHeartbeat'
12930+
resourceId:
12931+
type: string
12932+
description: Resource ID for routing. Contains the worker grouping key.
1291312933
RecordWorkerHeartbeatResponse:
1291412934
type: object
1291512935
properties: {}
@@ -13421,6 +13441,9 @@ components:
1342113441
allOf:
1342213442
- $ref: '#/components/schemas/WorkerDeploymentOptions'
1342313443
description: Worker deployment options that user has set in the worker.
13444+
resourceId:
13445+
type: string
13446+
description: Resource ID for routing. Contains "workflow:workflow_id" or "activity:activity_id" for standalone activities.
1342413447
RespondActivityTaskCanceledByIdResponse:
1342513448
type: object
1342613449
properties: {}
@@ -13440,6 +13463,9 @@ components:
1344013463
description: The identity of the worker/client
1344113464
namespace:
1344213465
type: string
13466+
resourceId:
13467+
type: string
13468+
description: Resource ID for routing. Contains the workflow ID or activity ID for standalone activities.
1344313469
workerVersion:
1344413470
allOf:
1344513471
- $ref: '#/components/schemas/WorkerVersionStamp'
@@ -13486,6 +13512,9 @@ components:
1348613512
identity:
1348713513
type: string
1348813514
description: The identity of the worker/client
13515+
resourceId:
13516+
type: string
13517+
description: Resource ID for routing. Contains "workflow:workflow_id" or "activity:activity_id" for standalone activities.
1348913518
RespondActivityTaskCompletedByIdResponse:
1349013519
type: object
1349113520
properties: {}
@@ -13505,6 +13534,9 @@ components:
1350513534
description: The identity of the worker/client
1350613535
namespace:
1350713536
type: string
13537+
resourceId:
13538+
type: string
13539+
description: Resource ID for routing. Contains the workflow ID or activity ID for standalone activities.
1350813540
workerVersion:
1350913541
allOf:
1351013542
- $ref: '#/components/schemas/WorkerVersionStamp'
@@ -13555,6 +13587,9 @@ components:
1355513587
allOf:
1355613588
- $ref: '#/components/schemas/Payloads'
1355713589
description: Additional details to be stored as last activity heartbeat
13590+
resourceId:
13591+
type: string
13592+
description: Resource ID for routing. Contains "workflow:workflow_id" or "activity:activity_id" for standalone activities.
1355813593
RespondActivityTaskFailedByIdResponse:
1355913594
type: object
1356013595
properties:
@@ -13581,6 +13616,9 @@ components:
1358113616
description: The identity of the worker/client
1358213617
namespace:
1358313618
type: string
13619+
resourceId:
13620+
type: string
13621+
description: Resource ID for routing. Contains the workflow ID or activity ID for standalone activities.
1358413622
lastHeartbeatDetails:
1358513623
allOf:
1358613624
- $ref: '#/components/schemas/Payloads'
@@ -15904,6 +15942,9 @@ components:
1590415942
allOf:
1590515943
- $ref: '#/components/schemas/WorkerSelector'
1590615944
description: Defines which workers should receive this command.
15945+
resourceId:
15946+
type: string
15947+
description: Resource ID for routing. Contains the worker grouping key.
1590715948
UpdateWorkerConfigResponse:
1590815949
type: object
1590915950
properties:
@@ -17599,6 +17640,20 @@ components:
1759917640
A boolean indicating whether the SDK has asked to eagerly execute the first workflow task for this workflow and
1760017641
eager execution was accepted by the server.
1760117642
Only populated by server with version >= 1.29.0.
17643+
declinedTargetVersionUpgrade:
17644+
allOf:
17645+
- $ref: '#/components/schemas/DeclinedTargetVersionUpgrade'
17646+
description: |-
17647+
During a previous run of this workflow, the server may have notified the SDK
17648+
that the Target Worker Deployment Version changed, but the SDK declined to
17649+
upgrade (e.g., by continuing-as-new with PINNED behavior). This field records
17650+
the target version that was declined.
17651+
17652+
This is a wrapper message to distinguish "never declined" (nil wrapper) from
17653+
"declined an unversioned target" (non-nil wrapper with nil deployment_version).
17654+
17655+
Used internally by the server during continue-as-new and retry.
17656+
Should not be read or interpreted by SDKs.
1760217657
description: Always the first event in workflow history
1760317658
WorkflowExecutionTerminatedEventAttributes:
1760417659
type: object

temporal/api/history/v1/message.proto

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,24 @@ message WorkflowExecutionStartedEventAttributes {
184184
// eager execution was accepted by the server.
185185
// Only populated by server with version >= 1.29.0.
186186
bool eager_execution_accepted = 38;
187+
188+
// During a previous run of this workflow, the server may have notified the SDK
189+
// that the Target Worker Deployment Version changed, but the SDK declined to
190+
// upgrade (e.g., by continuing-as-new with PINNED behavior). This field records
191+
// the target version that was declined.
192+
//
193+
// This is a wrapper message to distinguish "never declined" (nil wrapper) from
194+
// "declined an unversioned target" (non-nil wrapper with nil deployment_version).
195+
//
196+
// Used internally by the server during continue-as-new and retry.
197+
// Should not be read or interpreted by SDKs.
198+
DeclinedTargetVersionUpgrade declined_target_version_upgrade = 40;
199+
}
200+
201+
// Wrapper for a target deployment version that the SDK declined to upgrade to.
202+
// See declined_target_version_upgrade on WorkflowExecutionStartedEventAttributes.
203+
message DeclinedTargetVersionUpgrade {
204+
temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 1;
187205
}
188206

189207
message WorkflowExecutionCompletedEventAttributes {
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
syntax = "proto3";
2+
3+
package temporal.api.protometa.v1;
4+
5+
option go_package = "go.temporal.io/api/protometa/v1;protometa";
6+
option java_package = "io.temporal.api.protometa.v1";
7+
option java_multiple_files = true;
8+
option java_outer_classname = "AnnotationsProto";
9+
option ruby_package = "Temporalio::Api::Protometa::V1";
10+
option csharp_namespace = "Temporalio.Api.Protometa.V1";
11+
12+
import "google/protobuf/descriptor.proto";
13+
14+
// RequestHeaderAnnotation allows specifying that field values from a request
15+
// should be propagated as outbound headers.
16+
//
17+
// The value field supports template interpolation where field paths enclosed
18+
// in braces will be replaced with the actual field values from the request.
19+
// For example:
20+
// value: "{workflow_execution.workflow_id}"
21+
// value: "workflow-{workflow_execution.workflow_id}"
22+
// value: "{namespace}/{workflow_execution.workflow_id}"
23+
message RequestHeaderAnnotation {
24+
// The name of the header to set (e.g., "temporal-resource-id")
25+
string header = 1;
26+
27+
// A template string that may contain field paths in braces.
28+
// Field paths use dot notation to traverse nested messages.
29+
// Example: "{workflow_execution.workflow_id}"
30+
string value = 2;
31+
}
32+
33+
// Extension to add request-header annotations to RPC methods.
34+
// Multiple headers can be set by repeating this option.
35+
extend google.protobuf.MethodOptions {
36+
repeated RequestHeaderAnnotation request_header = 7234001;
37+
}

0 commit comments

Comments
 (0)