Skip to content

Commit 103e45f

Browse files
committed
Merge branch 'master' of github.com:temporalio/api into versioning-override
2 parents 3cd94cb + 98465b0 commit 103e45f

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed

openapi/openapiv2.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10189,7 +10189,8 @@
1018910189
"$ref": "#/definitions/v1ExecuteMultiOperationResponseResponse"
1019010190
}
1019110191
}
10192-
}
10192+
},
10193+
"description": "IMPORTANT: For [StartWorkflow, UpdateWorkflow] combination (\"Update-with-Start\") when both\n 1. the workflow update for the requested update ID has already completed, and\n 2. the workflow for the requested workflow ID has already been closed,\nthen you'll receive\n - an update response containing the update's outcome, and\n - a start response with a `status` field that reflects the workflow's current state."
1019310194
},
1019410195
"v1ExecuteMultiOperationResponseResponse": {
1019510196
"type": "object",
@@ -13918,6 +13919,10 @@
1391813919
"type": "boolean",
1391913920
"description": "If true, a new workflow was started."
1392013921
},
13922+
"status": {
13923+
"$ref": "#/definitions/v1WorkflowExecutionStatus",
13924+
"description": "Current execution status of the workflow. Typically remains WORKFLOW_EXECUTION_STATUS_RUNNING\nunless a de-dupe occurs or in specific scenarios handled within the ExecuteMultiOperation (refer to its docs)."
13925+
},
1392113926
"eagerWorkflowTask": {
1392213927
"$ref": "#/definitions/v1PollWorkflowTaskQueueResponse",
1392313928
"description": "When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will\nreturn the first workflow task to be eagerly executed.\nThe caller is expected to have a worker available to process the task."

openapi/openapiv3.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7470,6 +7470,13 @@ components:
74707470
type: array
74717471
items:
74727472
$ref: '#/components/schemas/ExecuteMultiOperationResponse_Response'
7473+
description: |-
7474+
IMPORTANT: For [StartWorkflow, UpdateWorkflow] combination ("Update-with-Start") when both
7475+
1. the workflow update for the requested update ID has already completed, and
7476+
2. the workflow for the requested workflow ID has already been closed,
7477+
then you'll receive
7478+
- an update response containing the update's outcome, and
7479+
- a start response with a `status` field that reflects the workflow's current state.
74737480
ExecuteMultiOperationResponse_Response:
74747481
type: object
74757482
properties:
@@ -11112,6 +11119,21 @@ components:
1111211119
started:
1111311120
type: boolean
1111411121
description: If true, a new workflow was started.
11122+
status:
11123+
enum:
11124+
- WORKFLOW_EXECUTION_STATUS_UNSPECIFIED
11125+
- WORKFLOW_EXECUTION_STATUS_RUNNING
11126+
- WORKFLOW_EXECUTION_STATUS_COMPLETED
11127+
- WORKFLOW_EXECUTION_STATUS_FAILED
11128+
- WORKFLOW_EXECUTION_STATUS_CANCELED
11129+
- WORKFLOW_EXECUTION_STATUS_TERMINATED
11130+
- WORKFLOW_EXECUTION_STATUS_CONTINUED_AS_NEW
11131+
- WORKFLOW_EXECUTION_STATUS_TIMED_OUT
11132+
type: string
11133+
description: |-
11134+
Current execution status of the workflow. Typically remains WORKFLOW_EXECUTION_STATUS_RUNNING
11135+
unless a de-dupe occurs or in specific scenarios handled within the ExecuteMultiOperation (refer to its docs).
11136+
format: enum
1111511137
eagerWorkflowTask:
1111611138
allOf:
1111711139
- $ref: '#/components/schemas/PollWorkflowTaskQueueResponse'

temporal/api/workflowservice/v1/request_response.proto

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@ message StartWorkflowExecutionResponse {
221221
string run_id = 1;
222222
// If true, a new workflow was started.
223223
bool started = 3;
224+
// Current execution status of the workflow. Typically remains WORKFLOW_EXECUTION_STATUS_RUNNING
225+
// unless a de-dupe occurs or in specific scenarios handled within the ExecuteMultiOperation (refer to its docs).
226+
temporal.api.enums.v1.WorkflowExecutionStatus status = 5;
224227
// When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will
225228
// return the first workflow task to be eagerly executed.
226229
// The caller is expected to have a worker available to process the task.
@@ -1805,6 +1808,12 @@ message ExecuteMultiOperationRequest {
18051808
}
18061809
}
18071810

1811+
// IMPORTANT: For [StartWorkflow, UpdateWorkflow] combination ("Update-with-Start") when both
1812+
// 1. the workflow update for the requested update ID has already completed, and
1813+
// 2. the workflow for the requested workflow ID has already been closed,
1814+
// then you'll receive
1815+
// - an update response containing the update's outcome, and
1816+
// - a start response with a `status` field that reflects the workflow's current state.
18081817
message ExecuteMultiOperationResponse {
18091818
repeated Response responses = 1;
18101819

0 commit comments

Comments
 (0)