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
@@ -9183,6 +9183,10 @@
9183
9183
"selector": {
9184
9184
"$ref": "#/definitions/v1WorkerSelector",
9185
9185
"description": "Defines which workers should receive this command.\nonly single worker is supported at this time."
9186
+
},
9187
+
"resourceId": {
9188
+
"type": "string",
9189
+
"description": "Resource ID for routing. Contains the worker grouping key."
9186
9190
}
9187
9191
}
9188
9192
},
@@ -9296,6 +9300,10 @@
9296
9300
"identity": {
9297
9301
"type": "string",
9298
9302
"title": "The identity of the worker/client"
9303
+
},
9304
+
"resourceId": {
9305
+
"type": "string",
9306
+
"description": "Resource ID for routing. Contains the workflow ID or activity ID for standalone activities."
9299
9307
}
9300
9308
}
9301
9309
},
@@ -9313,6 +9321,10 @@
9313
9321
"identity": {
9314
9322
"type": "string",
9315
9323
"title": "The identity of the worker/client"
9324
+
},
9325
+
"resourceId": {
9326
+
"type": "string",
9327
+
"description": "Resource ID for routing. Contains \"workflow:workflow_id\" or \"activity:activity_id\" for standalone activities."
9316
9328
}
9317
9329
}
9318
9330
},
@@ -9329,6 +9341,10 @@
9329
9341
"type": "object",
9330
9342
"$ref": "#/definitions/v1WorkerHeartbeat"
9331
9343
}
9344
+
},
9345
+
"resourceId": {
9346
+
"type": "string",
9347
+
"description": "Resource ID for routing. Contains the worker grouping key."
9332
9348
}
9333
9349
}
9334
9350
},
@@ -9498,6 +9514,10 @@
9498
9514
"type": "string",
9499
9515
"title": "The identity of the worker/client"
9500
9516
},
9517
+
"resourceId": {
9518
+
"type": "string",
9519
+
"description": "Resource ID for routing. Contains the workflow ID or activity ID for standalone activities."
9520
+
},
9501
9521
"workerVersion": {
9502
9522
"$ref": "#/definitions/v1WorkerVersionStamp",
9503
9523
"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."
9553
+
},
9554
+
"resourceId": {
9555
+
"type": "string",
9556
+
"description": "Resource ID for routing. Contains \"workflow:workflow_id\" or \"activity:activity_id\" for standalone activities."
9533
9557
}
9534
9558
}
9535
9559
},
@@ -9549,6 +9573,10 @@
9549
9573
"type": "string",
9550
9574
"title": "The identity of the worker/client"
9551
9575
},
9576
+
"resourceId": {
9577
+
"type": "string",
9578
+
"description": "Resource ID for routing. Contains the workflow ID or activity ID for standalone activities."
9579
+
},
9552
9580
"workerVersion": {
9553
9581
"$ref": "#/definitions/v1WorkerVersionStamp",
9554
9582
"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."
@@ -9577,6 +9605,10 @@
9577
9605
"identity": {
9578
9606
"type": "string",
9579
9607
"title": "The identity of the worker/client"
9608
+
},
9609
+
"resourceId": {
9610
+
"type": "string",
9611
+
"description": "Resource ID for routing. Contains \"workflow:workflow_id\" or \"activity:activity_id\" for standalone activities."
9580
9612
}
9581
9613
}
9582
9614
},
@@ -9596,6 +9628,10 @@
9596
9628
"type": "string",
9597
9629
"title": "The identity of the worker/client"
9598
9630
},
9631
+
"resourceId": {
9632
+
"type": "string",
9633
+
"description": "Resource ID for routing. Contains the workflow ID or activity ID for standalone activities."
9634
+
},
9599
9635
"lastHeartbeatDetails": {
9600
9636
"$ref": "#/definitions/v1Payloads",
9601
9637
"title": "Additional details to be stored as last activity heartbeat"
@@ -9632,6 +9668,10 @@
9632
9668
"lastHeartbeatDetails": {
9633
9669
"$ref": "#/definitions/v1Payloads",
9634
9670
"title": "Additional details to be stored as last activity heartbeat"
9671
+
},
9672
+
"resourceId": {
9673
+
"type": "string",
9674
+
"description": "Resource ID for routing. Contains \"workflow:workflow_id\" or \"activity:activity_id\" for standalone activities."
9635
9675
}
9636
9676
}
9637
9677
},
@@ -10416,6 +10456,10 @@
10416
10456
"selector": {
10417
10457
"$ref": "#/definitions/v1WorkerSelector",
10418
10458
"description": "Defines which workers should receive this command."
10459
+
},
10460
+
"resourceId": {
10461
+
"type": "string",
10462
+
"description": "Resource ID for routing. Contains the worker grouping key."
0 commit comments