Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions openapi/openapiv2.json
Original file line number Diff line number Diff line change
Expand Up @@ -12917,6 +12917,10 @@
"propagatedNexusSerializationContext": {
"$ref": "#/definitions/v1PropagatedSerializationContext",
"description": "Serialization context propagated from the Nexus caller that started this workflow."
},
"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."
}
}
},
Expand Down Expand Up @@ -19487,6 +19491,10 @@
},
"state": {
"$ref": "#/definitions/v1ScheduleState"
},
"timeSkippingConfig": {
"$ref": "#/definitions/v1TimeSkippingConfig",
"description": "Time-skipping configuration for this schedule.\nWhen enabled, the schedule advances its virtual time without waiting for\nwall-clock time, causing scheduled actions to be triggered sooner.\nThis feature is intended for testing only."
}
}
},
Expand Down Expand Up @@ -19591,6 +19599,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."
}
}
},
Expand Down
21 changes: 21 additions & 0 deletions openapi/openapiv3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16348,6 +16348,14 @@ components:
$ref: '#/components/schemas/SchedulePolicies'
state:
$ref: '#/components/schemas/ScheduleState'
timeSkippingConfig:
allOf:
- $ref: '#/components/schemas/TimeSkippingConfig'
description: |-
Time-skipping configuration for this schedule.
When enabled, the schedule advances its virtual time without waiting for
wall-clock time, causing scheduled actions to be triggered sooner.
This feature is intended for testing only.
ScheduleAction:
type: object
properties:
Expand Down Expand Up @@ -16446,6 +16454,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:
Expand Down Expand Up @@ -17846,6 +17860,13 @@ components:
allOf:
- $ref: '#/components/schemas/PropagatedSerializationContext'
description: Serialization context propagated from the Nexus caller that started this workflow.
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:
Expand Down
10 changes: 10 additions & 0 deletions temporal/api/schedule/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -352,13 +352,23 @@ 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 {
ScheduleSpec spec = 1;
ScheduleAction action = 2;
SchedulePolicies policies = 3;
ScheduleState state = 4;

// Time-skipping configuration for this schedule.
// When enabled, the schedule advances its virtual time without waiting for
// wall-clock time, causing scheduled actions to be triggered sooner.
// This feature is intended for testing only.
temporal.api.common.v1.TimeSkippingConfig time_skipping_config = 5;
}

// ScheduleListInfo is an abbreviated set of values from Schedule and ScheduleInfo
Expand Down
6 changes: 6 additions & 0 deletions temporal/api/workflowservice/v1/request_response.proto
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,14 @@ message StartWorkflowExecutionRequest {

// Time-skipping configuration. If not set, time skipping is disabled.
temporal.api.common.v1.TimeSkippingConfig time_skipping_config = 29;

// Serialization context propagated from the Nexus caller that started this workflow.
temporal.api.nexus.v1.PropagatedSerializationContext propagated_nexus_serialization_context = 30;

// 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 = 31;
}

message StartWorkflowExecutionResponse {
Expand Down
Loading