Skip to content

Commit 3a30adc

Browse files
authored
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 84b0a5f commit 3a30adc

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
@@ -11210,6 +11210,10 @@
1121011210
"onConflictOptions": {
1121111211
"$ref": "#/definitions/apiCommonV1OnConflictOptions",
1121211212
"description": "Options for handling conflicts when using ACTIVITY_ID_CONFLICT_POLICY_USE_EXISTING."
11213+
},
11214+
"startDelay": {
11215+
"type": "string",
11216+
"description": "Time to wait before dispatching the first activity task. This delay is not applied to retry attempts."
1121311217
}
1121411218
}
1121511219
},

openapi/openapiv3.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15379,6 +15379,10 @@ components:
1537915379
allOf:
1538015380
- $ref: '#/components/schemas/OnConflictOptions'
1538115381
description: Options for handling conflicts when using ACTIVITY_ID_CONFLICT_POLICY_USE_EXISTING.
15382+
startDelay:
15383+
pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$
15384+
type: string
15385+
description: Time to wait before dispatching the first activity task. This delay is not applied to retry attempts.
1538215386
StartActivityExecutionResponse:
1538315387
type: object
1538415388
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)