Skip to content

Commit 4404ed0

Browse files
fretz12spkane31
authored andcommitted
Add start delay field to StartActivityExecutionRequest (#767)
**What changed?** Added a start_delay field to StartActivityExecutionRequest in the proto definition and updated the OpenAPI specs accordingly. **Why?** To allow callers to specify a delay before the first standalone activity task is dispatched, matching the existing start delay capability available for workflow-started activities.
1 parent b8f65aa commit 4404ed0

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

openapi/openapiv2.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11298,6 +11298,10 @@
1129811298
"onConflictOptions": {
1129911299
"$ref": "#/definitions/apiCommonV1OnConflictOptions",
1130011300
"description": "Options for handling conflicts when using ACTIVITY_ID_CONFLICT_POLICY_USE_EXISTING."
11301+
},
11302+
"startDelay": {
11303+
"type": "string",
11304+
"description": "Time to wait before dispatching the first activity task. This delay is not applied to retry attempts."
1130111305
}
1130211306
}
1130311307
},

openapi/openapiv3.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15430,6 +15430,10 @@ components:
1543015430
allOf:
1543115431
- $ref: '#/components/schemas/OnConflictOptions'
1543215432
description: Options for handling conflicts when using ACTIVITY_ID_CONFLICT_POLICY_USE_EXISTING.
15433+
startDelay:
15434+
pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$
15435+
type: string
15436+
description: Time to wait before dispatching the first activity task. This delay is not applied to retry attempts.
1543315437
StartActivityExecutionResponse:
1543415438
type: object
1543515439
properties:

temporal/api/workflowservice/v1/request_response.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3001,6 +3001,8 @@ message StartActivityExecutionRequest {
30013001
repeated temporal.api.common.v1.Link links = 20;
30023002
// Options for handling conflicts when using ACTIVITY_ID_CONFLICT_POLICY_USE_EXISTING.
30033003
temporal.api.common.v1.OnConflictOptions on_conflict_options = 21;
3004+
// Time to wait before dispatching the first activity task. This delay is not applied to retry attempts.
3005+
google.protobuf.Duration start_delay = 22;
30043006
}
30053007

30063008
message StartActivityExecutionResponse {

0 commit comments

Comments
 (0)