Skip to content

Commit 352c65e

Browse files
committed
Merge branch 'master' of github.com:temporalio/api into versioning-override
2 parents 73148cc + ef67cbd commit 352c65e

File tree

4 files changed

+89
-8
lines changed

4 files changed

+89
-8
lines changed

openapi/openapiv2.json

+22-1
Original file line numberDiff line numberDiff line change
@@ -9052,6 +9052,14 @@
90529052
},
90539053
"internal": {
90549054
"$ref": "#/definitions/CallbackInternal"
9055+
},
9056+
"links": {
9057+
"type": "array",
9058+
"items": {
9059+
"type": "object",
9060+
"$ref": "#/definitions/apicommonv1Link"
9061+
},
9062+
"description": "Links associated with the callback. It can be used to link to underlying resources of the\ncallback."
90559063
}
90569064
},
90579065
"description": "Callback to attach to various events in the system, e.g. workflow run completion."
@@ -10189,7 +10197,8 @@
1018910197
"$ref": "#/definitions/v1ExecuteMultiOperationResponseResponse"
1019010198
}
1019110199
}
10192-
}
10200+
},
10201+
"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."
1019310202
},
1019410203
"v1ExecuteMultiOperationResponseResponse": {
1019510204
"type": "object",
@@ -12304,6 +12313,10 @@
1230412313
"activityPaused": {
1230512314
"type": "boolean",
1230612315
"description": "Will be set to true if the activity is paused."
12316+
},
12317+
"activityReset": {
12318+
"type": "boolean",
12319+
"description": "Will be set to true if the activity was reset.\nApplies only to the current run."
1230712320
}
1230812321
}
1230912322
},
@@ -12317,6 +12330,10 @@
1231712330
"activityPaused": {
1231812331
"type": "boolean",
1231912332
"description": "Will be set to true if the activity is paused."
12333+
},
12334+
"activityReset": {
12335+
"type": "boolean",
12336+
"description": "Will be set to true if the activity was reset.\nApplies only to the current run."
1232012337
}
1232112338
}
1232212339
},
@@ -13918,6 +13935,10 @@
1391813935
"type": "boolean",
1391913936
"description": "If true, a new workflow was started."
1392013937
},
13938+
"status": {
13939+
"$ref": "#/definitions/v1WorkflowExecutionStatus",
13940+
"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)."
13941+
},
1392113942
"eagerWorkflowTask": {
1392213943
"$ref": "#/definitions/v1PollWorkflowTaskQueueResponse",
1392313944
"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

+39
Original file line numberDiff line numberDiff line change
@@ -6596,6 +6596,13 @@ components:
65966596
$ref: '#/components/schemas/Callback_Nexus'
65976597
internal:
65986598
$ref: '#/components/schemas/Callback_Internal'
6599+
links:
6600+
type: array
6601+
items:
6602+
$ref: '#/components/schemas/Link'
6603+
description: |-
6604+
Links associated with the callback. It can be used to link to underlying resources of the
6605+
callback.
65996606
description: Callback to attach to various events in the system, e.g. workflow run completion.
66006607
CallbackInfo:
66016608
type: object
@@ -7470,6 +7477,13 @@ components:
74707477
type: array
74717478
items:
74727479
$ref: '#/components/schemas/ExecuteMultiOperationResponse_Response'
7480+
description: |-
7481+
IMPORTANT: For [StartWorkflow, UpdateWorkflow] combination ("Update-with-Start") when both
7482+
1. the workflow update for the requested update ID has already completed, and
7483+
2. the workflow for the requested workflow ID has already been closed,
7484+
then you'll receive
7485+
- an update response containing the update's outcome, and
7486+
- a start response with a `status` field that reflects the workflow's current state.
74737487
ExecuteMultiOperationResponse_Response:
74747488
type: object
74757489
properties:
@@ -9336,6 +9350,11 @@ components:
93369350
activityPaused:
93379351
type: boolean
93389352
description: Will be set to true if the activity is paused.
9353+
activityReset:
9354+
type: boolean
9355+
description: |-
9356+
Will be set to true if the activity was reset.
9357+
Applies only to the current run.
93399358
RecordActivityTaskHeartbeatRequest:
93409359
type: object
93419360
properties:
@@ -9363,6 +9382,11 @@ components:
93639382
activityPaused:
93649383
type: boolean
93659384
description: Will be set to true if the activity is paused.
9385+
activityReset:
9386+
type: boolean
9387+
description: |-
9388+
Will be set to true if the activity was reset.
9389+
Applies only to the current run.
93669390
RegisterNamespaceRequest:
93679391
type: object
93689392
properties:
@@ -11112,6 +11136,21 @@ components:
1111211136
started:
1111311137
type: boolean
1111411138
description: If true, a new workflow was started.
11139+
status:
11140+
enum:
11141+
- WORKFLOW_EXECUTION_STATUS_UNSPECIFIED
11142+
- WORKFLOW_EXECUTION_STATUS_RUNNING
11143+
- WORKFLOW_EXECUTION_STATUS_COMPLETED
11144+
- WORKFLOW_EXECUTION_STATUS_FAILED
11145+
- WORKFLOW_EXECUTION_STATUS_CANCELED
11146+
- WORKFLOW_EXECUTION_STATUS_TERMINATED
11147+
- WORKFLOW_EXECUTION_STATUS_CONTINUED_AS_NEW
11148+
- WORKFLOW_EXECUTION_STATUS_TIMED_OUT
11149+
type: string
11150+
description: |-
11151+
Current execution status of the workflow. Typically remains WORKFLOW_EXECUTION_STATUS_RUNNING
11152+
unless a de-dupe occurs or in specific scenarios handled within the ExecuteMultiOperation (refer to its docs).
11153+
format: enum
1111511154
eagerWorkflowTask:
1111611155
allOf:
1111711156
- $ref: '#/components/schemas/PollWorkflowTaskQueueResponse'

temporal/api/common/v1/message.proto

+4
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@ message Callback {
211211
Nexus nexus = 2;
212212
Internal internal = 3;
213213
}
214+
215+
// Links associated with the callback. It can be used to link to underlying resources of the
216+
// callback.
217+
repeated Link links = 100;
214218
}
215219

216220
// Link can be associated with history events. It might contain information about an external entity

temporal/api/workflowservice/v1/request_response.proto

+24-7
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.
@@ -526,6 +529,10 @@ message RecordActivityTaskHeartbeatResponse {
526529

527530
// Will be set to true if the activity is paused.
528531
bool activity_paused = 2;
532+
533+
// Will be set to true if the activity was reset.
534+
// Applies only to the current run.
535+
bool activity_reset = 3;
529536
}
530537

531538
message RecordActivityTaskHeartbeatByIdRequest {
@@ -550,6 +557,10 @@ message RecordActivityTaskHeartbeatByIdResponse {
550557

551558
// Will be set to true if the activity is paused.
552559
bool activity_paused = 2;
560+
561+
// Will be set to true if the activity was reset.
562+
// Applies only to the current run.
563+
bool activity_reset = 3;
553564
}
554565

555566
message RespondActivityTaskCompletedRequest {
@@ -1805,6 +1816,12 @@ message ExecuteMultiOperationRequest {
18051816
}
18061817
}
18071818

1819+
// IMPORTANT: For [StartWorkflow, UpdateWorkflow] combination ("Update-with-Start") when both
1820+
// 1. the workflow update for the requested update ID has already completed, and
1821+
// 2. the workflow for the requested workflow ID has already been closed,
1822+
// then you'll receive
1823+
// - an update response containing the update's outcome, and
1824+
// - a start response with a `status` field that reflects the workflow's current state.
18081825
message ExecuteMultiOperationResponse {
18091826
repeated Response responses = 1;
18101827

@@ -1831,13 +1848,13 @@ message UpdateActivityOptionsRequest {
18311848
// Controls which fields from `activity_options` will be applied
18321849
google.protobuf.FieldMask update_mask = 5;
18331850

1834-
// either activity id or activity type must be provided
1835-
oneof activity {
1836-
// Only activity with this ID will be updated.
1837-
string id = 6;
1838-
// Update all running activities of this type.
1839-
string type = 7;
1840-
}
1851+
// either activity id or activity type must be provided
1852+
oneof activity {
1853+
// Only activity with this ID will be updated.
1854+
string id = 6;
1855+
// Update all running activities of this type.
1856+
string type = 7;
1857+
}
18411858
}
18421859

18431860
message UpdateActivityOptionsResponse {

0 commit comments

Comments
 (0)