Skip to content
Open
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."
},
"idReusePolicyReturnExistingOutcomeOnReject": {
"type": "boolean",
"description": "Include the outcome in a success response if the activity has completed, and\nid_reuse_policy would have caused a failure response otherwise.\nThis is applicable only when the id_reuse_policy is ACTIVITY_ID_REUSE_POLICY_REJECT_DUPLICATE,\nor the activity succeeded and id_reuse_policy is ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY."
}
}
},
Expand Down Expand Up @@ -18955,6 +18959,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
11 changes: 11 additions & 0 deletions openapi/openapiv3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16377,6 +16377,13 @@ 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.
idReusePolicyReturnExistingOutcomeOnReject:
type: boolean
description: |-
Include the outcome in a success response if the activity has completed, and
id_reuse_policy would have caused a failure response otherwise.
This is applicable only when the id_reuse_policy is ACTIVITY_ID_REUSE_POLICY_REJECT_DUPLICATE,
or the activity succeeded and id_reuse_policy is ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY.
StartActivityExecutionResponse:
type: object
properties:
Expand All @@ -16390,6 +16397,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
8 changes: 8 additions & 0 deletions temporal/api/workflowservice/v1/request_response.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3169,6 +3169,12 @@ 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 in a success response if the activity has completed, and
// id_reuse_policy would have caused a failure response otherwise.
// This is applicable only when the id_reuse_policy is ACTIVITY_ID_REUSE_POLICY_REJECT_DUPLICATE,
Comment thread
ks-temporal marked this conversation as resolved.
// or the activity succeeded and id_reuse_policy is ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY.
bool id_reuse_policy_return_existing_outcome_on_reject = 23;
}

message StartActivityExecutionResponse {
Expand All @@ -3178,6 +3184,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.
Comment thread
ks-temporal marked this conversation as resolved.
Outdated
temporal.api.activity.v1.ActivityExecutionOutcome outcome = 4;
Comment thread
ks-temporal marked this conversation as resolved.
}

message DescribeActivityExecutionRequest {
Expand Down
Loading