Skip to content

Commit e1c9754

Browse files
authored
Add Deployment Options for Eager start (#645)
**What changed?** Added `eager_worker_deployment_options` to `StartWorkflowExecutionRequest`. <!-- Tell your future self why have you made these changes --> **Why?** So server knows the versioning info of the worker who would process the eager task. Server can ignore the eager flag if the worker doesn't have the Current version. <!-- Are there any breaking changes on binary or code level? --> **Breaking changes** None <!-- If this breaks the Server, please provide the Server PR to merge right after this PR was merged. --> **Server PR**
1 parent 467d73d commit e1c9754

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

openapi/openapiv2.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8842,6 +8842,10 @@
88428842
"priority": {
88438843
"$ref": "#/definitions/v1Priority",
88448844
"title": "Priority metadata"
8845+
},
8846+
"eagerWorkerDeploymentOptions": {
8847+
"$ref": "#/definitions/v1WorkerDeploymentOptions",
8848+
"description": "Deployment Options of the worker who will process the eager task. Passed when `request_eager_execution=true`."
88458849
}
88468850
}
88478851
},
@@ -15128,6 +15132,10 @@
1512815132
"priority": {
1512915133
"$ref": "#/definitions/v1Priority",
1513015134
"title": "Priority metadata"
15135+
},
15136+
"eagerWorkerDeploymentOptions": {
15137+
"$ref": "#/definitions/v1WorkerDeploymentOptions",
15138+
"description": "Deployment Options of the worker who will process the eager task. Passed when `request_eager_execution=true`."
1513115139
}
1513215140
}
1513315141
},

openapi/openapiv3.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12175,6 +12175,10 @@ components:
1217512175
allOf:
1217612176
- $ref: '#/components/schemas/Priority'
1217712177
description: Priority metadata
12178+
eagerWorkerDeploymentOptions:
12179+
allOf:
12180+
- $ref: '#/components/schemas/WorkerDeploymentOptions'
12181+
description: Deployment Options of the worker who will process the eager task. Passed when `request_eager_execution=true`.
1217812182
StartWorkflowExecutionResponse:
1217912183
type: object
1218012184
properties:

temporal/api/workflowservice/v1/request_response.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ message StartWorkflowExecutionRequest {
194194
temporal.api.workflow.v1.OnConflictOptions on_conflict_options = 26;
195195
// Priority metadata
196196
temporal.api.common.v1.Priority priority = 27;
197+
// Deployment Options of the worker who will process the eager task. Passed when `request_eager_execution=true`.
198+
temporal.api.deployment.v1.WorkerDeploymentOptions eager_worker_deployment_options = 28;
197199
}
198200

199201
message StartWorkflowExecutionResponse {

0 commit comments

Comments
 (0)