Skip to content

Commit 79a8358

Browse files
authored
Add WorkflowExecutionStartedEventAttributes.eager_execution_accepted (#614)
**Why?** For debugging purposes.
1 parent f7bd988 commit 79a8358

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

openapi/openapiv2.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16298,6 +16298,10 @@
1629816298
"inheritedPinnedVersion": {
1629916299
"$ref": "#/definitions/v1WorkerDeploymentVersion",
1630016300
"description": "If present, the new workflow should start on this version with pinned base behavior.\nChild of pinned parent will inherit the parent's version if the Child's Task Queue belongs to that version.\n\nNew run initiated by workflow ContinueAsNew of pinned run, will inherit the previous run's version if the\nnew run's Task Queue belongs to that version.\n\nNew run initiated by workflow Cron will never inherit.\n\nNew run initiated by workflow Retry will only inherit if the retried run is effectively pinned at the time\nof retry, and the retried run inherited a pinned version when it started (ie. it is a child of a pinned\nparent, or a CaN of a pinned run, and is running on a Task Queue in the inherited version).\n\nPinned override is inherited if Task Queue of new run is compatible with the override version.\nOverride is inherited separately and takes precedence over inherited base version."
16301+
},
16302+
"eagerExecutionAccepted": {
16303+
"type": "boolean",
16304+
"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."
1630116305
}
1630216306
},
1630316307
"title": "Always the first event in workflow history"

openapi/openapiv3.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13816,6 +13816,12 @@ components:
1381613816

1381713817
Pinned override is inherited if Task Queue of new run is compatible with the override version.
1381813818
Override is inherited separately and takes precedence over inherited base version.
13819+
eagerExecutionAccepted:
13820+
type: boolean
13821+
description: |-
13822+
A boolean indicating whether the SDK has asked to eagerly execute the first workflow task for this workflow and
13823+
eager execution was accepted by the server.
13824+
Only populated by server with version >= 1.29.0.
1381913825
description: Always the first event in workflow history
1382013826
WorkflowExecutionTerminatedEventAttributes:
1382113827
type: object

temporal/api/history/v1/message.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ message WorkflowExecutionStartedEventAttributes {
151151
// Pinned override is inherited if Task Queue of new run is compatible with the override version.
152152
// Override is inherited separately and takes precedence over inherited base version.
153153
temporal.api.deployment.v1.WorkerDeploymentVersion inherited_pinned_version = 37;
154+
155+
// A boolean indicating whether the SDK has asked to eagerly execute the first workflow task for this workflow and
156+
// eager execution was accepted by the server.
157+
// Only populated by server with version >= 1.29.0.
158+
bool eager_execution_accepted = 38;
154159
}
155160

156161
message WorkflowExecutionCompletedEventAttributes {

0 commit comments

Comments
 (0)