Skip to content

Commit 91268ec

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

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

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_time = 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+
// The propagated duration skipped for the child workflow.
782+
google.protobuf.Duration initial_skipped_time = 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_time = 30;
210+
204211
}
205212

206213
message StartWorkflowExecutionResponse {

0 commit comments

Comments
 (0)