diff --git a/openapi/openapiv2.json b/openapi/openapiv2.json index 1391f113a..0b84ce12d 100644 --- a/openapi/openapiv2.json +++ b/openapi/openapiv2.json @@ -12846,6 +12846,10 @@ "timeSkippingConfig": { "$ref": "#/definitions/v1TimeSkippingConfig", "description": "Time-skipping configuration. If not set, time skipping is disabled." + }, + "timeSkippingStatePropagation": { + "$ref": "#/definitions/v1TimeSkippingStatePropagation", + "description": "Time-skipping state propagated by the execution that started this workflow.\nThis field is intended for use by the Temporal server, for example when a schedule\nstarts a workflow, and is not intended to be set by external clients." } } }, @@ -19150,6 +19154,10 @@ }, "state": { "$ref": "#/definitions/v1ScheduleState" + }, + "timeSkippingConfig": { + "$ref": "#/definitions/v1TimeSkippingConfig", + "description": "Time-skipping configuration for this schedule.\nIf not set, time skipping is disabled for triggered workflow executions." } } }, @@ -19254,6 +19262,10 @@ "type": "string", "format": "int64", "description": "Size of the schedule's internal state (including payloads) in bytes." + }, + "timeSkippingInfo": { + "$ref": "#/definitions/v1TimeSkippingInfo", + "description": "Information about time skipping for this schedule.\nIf the schedule has never enabled time skipping, this will be unset." } } }, diff --git a/openapi/openapiv3.yaml b/openapi/openapiv3.yaml index ab3e297e5..8f4393bb3 100644 --- a/openapi/openapiv3.yaml +++ b/openapi/openapiv3.yaml @@ -16044,6 +16044,12 @@ components: $ref: '#/components/schemas/SchedulePolicies' state: $ref: '#/components/schemas/ScheduleState' + timeSkippingConfig: + allOf: + - $ref: '#/components/schemas/TimeSkippingConfig' + description: |- + Time-skipping configuration for this schedule. + If not set, time skipping is disabled for triggered workflow executions. ScheduleAction: type: object properties: @@ -16142,6 +16148,12 @@ components: stateSizeBytes: type: string description: Size of the schedule's internal state (including payloads) in bytes. + timeSkippingInfo: + allOf: + - $ref: '#/components/schemas/TimeSkippingInfo' + description: |- + Information about time skipping for this schedule. + If the schedule has never enabled time skipping, this will be unset. ScheduleListEntry: type: object properties: @@ -17472,6 +17484,13 @@ components: allOf: - $ref: '#/components/schemas/TimeSkippingConfig' description: Time-skipping configuration. If not set, time skipping is disabled. + timeSkippingStatePropagation: + allOf: + - $ref: '#/components/schemas/TimeSkippingStatePropagation' + description: |- + Time-skipping state propagated by the execution that started this workflow. + This field is intended for use by the Temporal server, for example when a schedule + starts a workflow, and is not intended to be set by external clients. StartWorkflowExecutionResponse: type: object properties: diff --git a/temporal/api/schedule/v1/message.proto b/temporal/api/schedule/v1/message.proto index 3a0a9344c..5190a0b54 100644 --- a/temporal/api/schedule/v1/message.proto +++ b/temporal/api/schedule/v1/message.proto @@ -352,6 +352,10 @@ message ScheduleInfo { // Size of the schedule's internal state (including payloads) in bytes. int64 state_size_bytes = 12; + + // Information about time skipping for this schedule. + // If the schedule has never enabled time skipping, this will be unset. + temporal.api.common.v1.TimeSkippingInfo time_skipping_info = 13; } message Schedule { @@ -359,6 +363,10 @@ message Schedule { ScheduleAction action = 2; SchedulePolicies policies = 3; ScheduleState state = 4; + + // Time-skipping configuration for this schedule. + // If not set, time skipping is disabled for triggered workflow executions. + temporal.api.common.v1.TimeSkippingConfig time_skipping_config = 5; } // ScheduleListInfo is an abbreviated set of values from Schedule and ScheduleInfo diff --git a/temporal/api/workflowservice/v1/request_response.proto b/temporal/api/workflowservice/v1/request_response.proto index c3dd95769..2133bbe2a 100644 --- a/temporal/api/workflowservice/v1/request_response.proto +++ b/temporal/api/workflowservice/v1/request_response.proto @@ -218,6 +218,11 @@ message StartWorkflowExecutionRequest { // Time-skipping configuration. If not set, time skipping is disabled. temporal.api.common.v1.TimeSkippingConfig time_skipping_config = 29; + + // Time-skipping state propagated by the execution that started this workflow. + // This field is intended for use by the Temporal server, for example when a schedule + // starts a workflow, and is not intended to be set by external clients. + temporal.api.common.v1.TimeSkippingStatePropagation time_skipping_state_propagation = 30; } message StartWorkflowExecutionResponse {