Skip to content

Commit d9966b1

Browse files
committed
add time-skipping config in WorkflowExecutionStartedEventAttributes
1 parent 6f298e7 commit d9966b1

3 files changed

Lines changed: 22 additions & 0 deletions

File tree

openapi/openapiv2.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18625,6 +18625,10 @@
1862518625
"declinedTargetVersionUpgrade": {
1862618626
"$ref": "#/definitions/v1DeclinedTargetVersionUpgrade",
1862718627
"description": "During a previous run of this workflow, the server may have notified the SDK\nthat the Target Worker Deployment Version changed, but the SDK declined to\nupgrade (e.g., by continuing-as-new with PINNED behavior). This field records\nthe target version that was declined.\n\nThis is a wrapper message to distinguish \"never declined\" (nil wrapper) from\n\"declined an unversioned target\" (non-nil wrapper with nil deployment_version).\n\nUsed internally by the server during continue-as-new and retry.\nShould not be read or interpreted by SDKs."
18628+
},
18629+
"timeSkippingConfig": {
18630+
"$ref": "#/definitions/v1TimeSkippingConfig",
18631+
"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."
1862818632
}
1862918633
},
1863018634
"title": "Always the first event in workflow history"

openapi/openapiv3.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17355,6 +17355,16 @@ components:
1735517355

1735617356
Used internally by the server during continue-as-new and retry.
1735717357
Should not be read or interpreted by SDKs.
17358+
timeSkippingConfig:
17359+
allOf:
17360+
- $ref: '#/components/schemas/TimeSkippingConfig'
17361+
description: |-
17362+
Initial time-skipping configuration for this workflow execution, recorded at start time.
17363+
This may have been set explicitly via the start workflow request, or propagated from a
17364+
parent/previous execution.
17365+
17366+
The configuration may be updated after start via UpdateWorkflowExecutionOptions, which
17367+
will be reflected in the WorkflowExecutionOptionsUpdatedEvent.
1735817368
description: Always the first event in workflow history
1735917369
WorkflowExecutionTerminatedEventAttributes:
1736017370
type: object

temporal/api/history/v1/message.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,14 @@ message WorkflowExecutionStartedEventAttributes {
196196
// Used internally by the server during continue-as-new and retry.
197197
// Should not be read or interpreted by SDKs.
198198
DeclinedTargetVersionUpgrade declined_target_version_upgrade = 40;
199+
200+
// Initial time-skipping configuration for this workflow execution, recorded at start time.
201+
// This may have been set explicitly via the start workflow request, or propagated from a
202+
// parent/previous execution.
203+
//
204+
// The configuration may be updated after start via UpdateWorkflowExecutionOptions, which
205+
// will be reflected in the WorkflowExecutionOptionsUpdatedEvent.
206+
temporal.api.workflow.v1.TimeSkippingConfig time_skipping_config = 41;
199207
}
200208

201209
// Wrapper for a target deployment version that the SDK declined to upgrade to.

0 commit comments

Comments
 (0)