Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions openapi/openapiv2.json
Original file line number Diff line number Diff line change
Expand Up @@ -12173,6 +12173,10 @@
"startDelay": {
"type": "string",
"description": "Time to wait before dispatching the first activity task. This delay is not applied to retry attempts."
},
"includeOutcome": {
"type": "boolean",
"description": "Include the outcome (result/failure) in the response if the activity has completed."
}
}
},
Expand Down Expand Up @@ -18929,6 +18933,10 @@
"link": {
"$ref": "#/definitions/v1Link",
"description": "Link to the started activity."
},
"outcome": {
"$ref": "#/definitions/v1ActivityExecutionOutcome",
"description": "Only set if the activity is already completed and include_outcome was true in the request."
}
}
},
Expand Down
7 changes: 7 additions & 0 deletions openapi/openapiv3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16349,6 +16349,9 @@ components:
pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$
type: string
description: Time to wait before dispatching the first activity task. This delay is not applied to retry attempts.
includeOutcome:
type: boolean
description: Include the outcome (result/failure) in the response if the activity has completed.
StartActivityExecutionResponse:
type: object
properties:
Expand All @@ -16362,6 +16365,10 @@ components:
allOf:
- $ref: '#/components/schemas/Link'
description: Link to the started activity.
outcome:
allOf:
- $ref: '#/components/schemas/ActivityExecutionOutcome'
description: Only set if the activity is already completed and include_outcome was true in the request.
StartBatchOperationRequest:
type: object
properties:
Expand Down
5 changes: 5 additions & 0 deletions temporal/api/workflowservice/v1/request_response.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3164,6 +3164,9 @@ message StartActivityExecutionRequest {
temporal.api.common.v1.OnConflictOptions on_conflict_options = 21;
// Time to wait before dispatching the first activity task. This delay is not applied to retry attempts.
google.protobuf.Duration start_delay = 22;

// Include the outcome (result/failure) in the response if the activity has completed.
Comment thread
ks-temporal marked this conversation as resolved.
Outdated
bool include_outcome = 23;
}

message StartActivityExecutionResponse {
Expand All @@ -3173,6 +3176,8 @@ message StartActivityExecutionResponse {
bool started = 2;
// Link to the started activity.
temporal.api.common.v1.Link link = 3;
// Only set if the activity is already completed and include_outcome was true in the request.
temporal.api.activity.v1.ActivityExecutionOutcome outcome = 4;
}

message DescribeActivityExecutionRequest {
Expand Down
Loading