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
4 changes: 4 additions & 0 deletions openapi/openapiv2.json
Original file line number Diff line number Diff line change
Expand Up @@ -17645,6 +17645,10 @@
"eagerExecutionAccepted": {
"type": "boolean",
"description": "A boolean indicating whether the SDK has asked to eagerly execute the first workflow task for this workflow and\neager execution was accepted by the server.\nOnly populated by server with version >= 1.29.0."
},
"previousRunLatestTargetWorkerDeploymentVersion": {
"$ref": "#/definitions/v1WorkerDeploymentVersion",
"description": "The previous run's latest target Worker Deployment Version that matching\nhad resolved before this workflow execution commenced. Populated by the\nserver during continue-as-new. Used to detect whether the workflow's\nTarget Version has changed since this run started, preventing infinite\ncontinue-as-new loops for pinned workflows that do not have initial CaN\nbehavior set as AutoUpgrade. Nil for workflows that are not initiated by\na versioned workflow continuing-as-new.\nThis field is used internally by the server and should not be read or\ninterpreted by SDKs."
}
},
"title": "Always the first event in workflow history"
Expand Down
13 changes: 13 additions & 0 deletions openapi/openapiv3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16459,6 +16459,19 @@ components:
A boolean indicating whether the SDK has asked to eagerly execute the first workflow task for this workflow and
eager execution was accepted by the server.
Only populated by server with version >= 1.29.0.
previousRunLatestTargetWorkerDeploymentVersion:
allOf:
- $ref: '#/components/schemas/WorkerDeploymentVersion'
description: |-
The previous run's latest target Worker Deployment Version that matching
had resolved before this workflow execution commenced. Populated by the
server during continue-as-new. Used to detect whether the workflow's
Target Version has changed since this run started, preventing infinite
continue-as-new loops for pinned workflows that do not have initial CaN
behavior set as AutoUpgrade. Nil for workflows that are not initiated by
a versioned workflow continuing-as-new.
This field is used internally by the server and should not be read or
interpreted by SDKs.
description: Always the first event in workflow history
WorkflowExecutionTerminatedEventAttributes:
type: object
Expand Down
11 changes: 11 additions & 0 deletions temporal/api/history/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,17 @@ message WorkflowExecutionStartedEventAttributes {
// eager execution was accepted by the server.
// Only populated by server with version >= 1.29.0.
bool eager_execution_accepted = 38;

// The previous run's latest target Worker Deployment Version that matching
// had resolved before this workflow execution commenced. Populated by the
// server during continue-as-new. Used to detect whether the workflow's
// Target Version has changed since this run started, preventing infinite
// continue-as-new loops for pinned workflows that do not have initial CaN
// behavior set as AutoUpgrade. Nil for workflows that are not initiated by
// a versioned workflow continuing-as-new.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This field doesn't need to be looked at by SDK, correct? A line to that effect is always helpful in docstrings.

// This field is used internally by the server and should not be read or
// interpreted by SDKs.
temporal.api.deployment.v1.WorkerDeploymentVersion previous_run_latest_target_worker_deployment_version = 40;
}

message WorkflowExecutionCompletedEventAttributes {
Expand Down
Loading