Skip to content

Commit 1b2fb47

Browse files
committed
mv initial_skipped_time from config to start request, start attr, and start child attr
1 parent 8c1f458 commit 1b2fb47

4 files changed

Lines changed: 43 additions & 0 deletions

File tree

openapi/openapiv2.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11442,6 +11442,10 @@
1144211442
"timeSkippingConfig": {
1144311443
"$ref": "#/definitions/v1TimeSkippingConfig",
1144411444
"description": "Time-skipping configuration. If not set, time skipping is disabled."
11445+
},
11446+
"initialSkippedDuration": {
11447+
"type": "string",
11448+
"description": "If this execution was started by a previous execution that had already skipped some time,\nit inherits the accumulated skipped duration from that execution through this field.\nThis field is set internally by the server and cannot be configured by the user."
1144511449
}
1144611450
}
1144711451
},
@@ -17965,6 +17969,10 @@
1796517969
"timeSkippingConfig": {
1796617970
"$ref": "#/definitions/v1TimeSkippingConfig",
1796717971
"description": "The propagated time-skipping configuration for the child workflow."
17972+
},
17973+
"initialSkippedDuration": {
17974+
"type": "string",
17975+
"description": "Propagate the duration skipped to the child workflow."
1796817976
}
1796917977
}
1797017978
},
@@ -19922,6 +19930,10 @@
1992219930
"timeSkippingConfig": {
1992319931
"$ref": "#/definitions/v1TimeSkippingConfig",
1992419932
"description": "Initial time-skipping configuration for this workflow execution, recorded at start time.\nThis may have been set explicitly via the start workflow request, or propagated from a\nparent/previous execution.\n\nThe configuration may be updated after start via UpdateWorkflowExecutionOptions, which\nwill be reflected in the WorkflowExecutionOptionsUpdatedEvent."
19933+
},
19934+
"initialSkippedDuration": {
19935+
"type": "string",
19936+
"description": "The time skipped by the previous execution that started this workflow.\nIt can happen in cases of child workflows and continue-as-new workflows."
1992519937
}
1992619938
},
1992719939
"title": "Always the first event in workflow history"

openapi/openapiv3.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15557,6 +15557,10 @@ components:
1555715557
allOf:
1555815558
- $ref: '#/components/schemas/TimeSkippingConfig'
1555915559
description: The propagated time-skipping configuration for the child workflow.
15560+
initialSkippedDuration:
15561+
pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$
15562+
type: string
15563+
description: Propagate the duration skipped to the child workflow.
1556015564
StartNexusOperationExecutionRequest:
1556115565
type: object
1556215566
properties:
@@ -15810,6 +15814,13 @@ components:
1581015814
allOf:
1581115815
- $ref: '#/components/schemas/TimeSkippingConfig'
1581215816
description: Time-skipping configuration. If not set, time skipping is disabled.
15817+
initialSkippedDuration:
15818+
pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$
15819+
type: string
15820+
description: |-
15821+
If this execution was started by a previous execution that had already skipped some time,
15822+
it inherits the accumulated skipped duration from that execution through this field.
15823+
This field is set internally by the server and cannot be configured by the user.
1581315824
StartWorkflowExecutionResponse:
1581415825
type: object
1581515826
properties:
@@ -18558,6 +18569,12 @@ components:
1855818569

1855918570
The configuration may be updated after start via UpdateWorkflowExecutionOptions, which
1856018571
will be reflected in the WorkflowExecutionOptionsUpdatedEvent.
18572+
initialSkippedDuration:
18573+
pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$
18574+
type: string
18575+
description: |-
18576+
The time skipped by the previous execution that started this workflow.
18577+
It can happen in cases of child workflows and continue-as-new workflows.
1856118578
description: Always the first event in workflow history
1856218579
WorkflowExecutionTerminatedEventAttributes:
1856318580
type: object

temporal/api/history/v1/message.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@ message WorkflowExecutionStartedEventAttributes {
204204
// The configuration may be updated after start via UpdateWorkflowExecutionOptions, which
205205
// will be reflected in the WorkflowExecutionOptionsUpdatedEvent.
206206
temporal.api.workflow.v1.TimeSkippingConfig time_skipping_config = 41;
207+
208+
// The time skipped by the previous execution that started this workflow.
209+
// It can happen in cases of child workflows and continue-as-new workflows.
210+
google.protobuf.Duration initial_skipped_duration = 42;
207211
}
208212

209213
// Wrapper for a target deployment version that the SDK declined to upgrade to.
@@ -773,6 +777,9 @@ message StartChildWorkflowExecutionInitiatedEventAttributes {
773777

774778
// The propagated time-skipping configuration for the child workflow.
775779
temporal.api.workflow.v1.TimeSkippingConfig time_skipping_config = 21;
780+
781+
// Propagate the duration skipped to the child workflow.
782+
google.protobuf.Duration initial_skipped_duration = 30;
776783
}
777784

778785
message StartChildWorkflowExecutionFailedEventAttributes {

temporal/api/workflowservice/v1/request_response.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,15 @@ message StartWorkflowExecutionRequest {
199199
temporal.api.common.v1.Priority priority = 27;
200200
// Deployment Options of the worker who will process the eager task. Passed when `request_eager_execution=true`.
201201
temporal.api.deployment.v1.WorkerDeploymentOptions eager_worker_deployment_options = 28;
202+
202203
// Time-skipping configuration. If not set, time skipping is disabled.
203204
temporal.api.workflow.v1.TimeSkippingConfig time_skipping_config = 29;
205+
206+
// If this execution was started by a previous execution that had already skipped some time,
207+
// it inherits the accumulated skipped duration from that execution through this field.
208+
// This field is set internally by the server and cannot be configured by the user.
209+
google.protobuf.Duration initial_skipped_duration = 30;
210+
204211
}
205212

206213
message StartWorkflowExecutionResponse {

0 commit comments

Comments
 (0)