You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add request header annotation and resource-id fields (#728)
_**READ BEFORE MERGING:** All PRs require approval by both Server AND
SDK teams before merging! This is why the number of required approvals
is "2" and not "1"--two reviewers from the same team is NOT sufficient.
If your PR is not approved by someone in BOTH teams, it may be summarily
reverted._
<!-- Describe what has changed in this PR -->
Adding a proto annotation to be used for automatically propagating
message fields into headers. Will be accompanied by SDK changes to
generate code for doing so based on the annotations. See
temporalio/api-go#236 and
temporalio/sdk-go#2226 for example.
Also adds additional `resource-id` fields to a number of messages for
use in routing.
<!-- Tell your future self why have you made these changes -->
MCN support
<!-- Are there any breaking changes on binary or code level? -->
**Breaking changes**
<!-- If this breaks the Server, please provide the Server PR to merge
right after this PR was merged. -->
**Server PR**
---------
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: openapi/openapiv2.json
+44Lines changed: 44 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9902,6 +9902,10 @@
9902
9902
"selector": {
9903
9903
"$ref": "#/definitions/v1WorkerSelector",
9904
9904
"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."
9905
9909
}
9906
9910
}
9907
9911
},
@@ -10015,6 +10019,10 @@
10015
10019
"identity": {
10016
10020
"type": "string",
10017
10021
"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."
10018
10026
}
10019
10027
}
10020
10028
},
@@ -10032,6 +10040,10 @@
10032
10040
"identity": {
10033
10041
"type": "string",
10034
10042
"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."
10035
10047
}
10036
10048
}
10037
10049
},
@@ -10048,6 +10060,10 @@
10048
10060
"type": "object",
10049
10061
"$ref": "#/definitions/v1WorkerHeartbeat"
10050
10062
}
10063
+
},
10064
+
"resourceId": {
10065
+
"type": "string",
10066
+
"description": "Resource ID for routing. Contains the worker grouping key."
10051
10067
}
10052
10068
}
10053
10069
},
@@ -10238,6 +10254,10 @@
10238
10254
"type": "string",
10239
10255
"title": "The identity of the worker/client"
10240
10256
},
10257
+
"resourceId": {
10258
+
"type": "string",
10259
+
"description": "Resource ID for routing. Contains the workflow ID or activity ID for standalone activities."
10260
+
},
10241
10261
"workerVersion": {
10242
10262
"$ref": "#/definitions/v1WorkerVersionStamp",
10243
10263
"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."
"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."
10273
10297
}
10274
10298
}
10275
10299
},
@@ -10289,6 +10313,10 @@
10289
10313
"type": "string",
10290
10314
"title": "The identity of the worker/client"
10291
10315
},
10316
+
"resourceId": {
10317
+
"type": "string",
10318
+
"description": "Resource ID for routing. Contains the workflow ID or activity ID for standalone activities."
10319
+
},
10292
10320
"workerVersion": {
10293
10321
"$ref": "#/definitions/v1WorkerVersionStamp",
10294
10322
"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 @@
10317
10345
"identity": {
10318
10346
"type": "string",
10319
10347
"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."
10320
10352
}
10321
10353
}
10322
10354
},
@@ -10336,6 +10368,10 @@
10336
10368
"type": "string",
10337
10369
"title": "The identity of the worker/client"
10338
10370
},
10371
+
"resourceId": {
10372
+
"type": "string",
10373
+
"description": "Resource ID for routing. Contains the workflow ID or activity ID for standalone activities."
10374
+
},
10339
10375
"lastHeartbeatDetails": {
10340
10376
"$ref": "#/definitions/v1Payloads",
10341
10377
"title": "Additional details to be stored as last activity heartbeat"
@@ -10372,6 +10408,10 @@
10372
10408
"lastHeartbeatDetails": {
10373
10409
"$ref": "#/definitions/v1Payloads",
10374
10410
"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."
10375
10415
}
10376
10416
}
10377
10417
},
@@ -11233,6 +11273,10 @@
11233
11273
"selector": {
11234
11274
"$ref": "#/definitions/v1WorkerSelector",
11235
11275
"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."
0 commit comments