You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"summary": "ResetWorkflowExecution will reset an existing workflow execution to a specified\n`WORKFLOW_TASK_COMPLETED` event (exclusive). It will immediately terminate the current\nexecution instance.\nTODO: Does exclusive here mean *just* the completed event, or also WFT started? Otherwise the task is doomed to time out?",
3109
+
"summary": "ResetWorkflowExecution will reset an existing workflow execution to a specified\n`WORKFLOW_TASK_COMPLETED` event (exclusive). It will immediately terminate the current\nexecution instance. \"Exclusive\" means the identified completed event itself is not replayed\nin the reset history; the preceding `WORKFLOW_TASK_STARTED` event remains and will be marked as failed\nimmediately, and a new workflow task will be scheduled to retry it.",
"summary": "ResetWorkflowExecution will reset an existing workflow execution to a specified\n`WORKFLOW_TASK_COMPLETED` event (exclusive). It will immediately terminate the current\nexecution instance.\nTODO: Does exclusive here mean *just* the completed event, or also WFT started? Otherwise the task is doomed to time out?",
6934
+
"summary": "ResetWorkflowExecution will reset an existing workflow execution to a specified\n`WORKFLOW_TASK_COMPLETED` event (exclusive). It will immediately terminate the current\nexecution instance. \"Exclusive\" means the identified completed event itself is not replayed\nin the reset history; the preceding `WORKFLOW_TASK_STARTED` event remains and will be marked as failed\nimmediately, and a new workflow task will be scheduled to retry it.",
6935
6935
"operationId": "ResetWorkflowExecution",
6936
6936
"responses": {
6937
6937
"200": {
@@ -9630,7 +9630,7 @@
9630
9630
},
9631
9631
"requestId": {
9632
9632
"type": "string",
9633
-
"title": "TODO ??"
9633
+
"description": "This field is populated from the RecordActivityTaskStartedRequest. Matching service would\nset the request_id on the RecordActivityTaskStartedRequest to a new UUID. This is useful\nin case a RecordActivityTaskStarted call succeed but matching doesn't get that response,\nso matching could retry and history service would return success if the request_id matches.\nIn that case, matching will continue to deliver the task to worker. Without this field, history\nservice would return AlreadyStarted error, and matching would drop the task."
9634
9634
},
9635
9635
"attempt": {
9636
9636
"type": "integer",
@@ -11700,12 +11700,12 @@
11700
11700
"version": {
11701
11701
"type": "string",
11702
11702
"format": "int64",
11703
-
"title": "TODO: What is this? Appears unused by SDKs"
11703
+
"description": "Failover version of the event, used by the server for multi-cluster replication and history\nversioning. SDKs generally ignore this field."
11704
11704
},
11705
11705
"taskId": {
11706
11706
"type": "string",
11707
11707
"format": "int64",
11708
-
"title": "TODO: What is this? Appears unused by SDKs"
11708
+
"description": "Identifier used by the service to order replication and transfer tasks associated with this\nevent. SDKs generally ignore this field."
11709
11709
},
11710
11710
"workerMayIgnore": {
11711
11711
"type": "boolean",
@@ -15288,7 +15288,7 @@
15288
15288
"description": "Free-form comment describing the intention of this spec."
15289
15289
}
15290
15290
},
15291
-
"title": "StructuredCalendarSpec describes an event specification relative to the\ncalendar, in a form that's easy to work with programmatically. Each field can\nbe one or more ranges.\nA timestamp matches if at least one range of each field matches the\ncorresponding fields of the timestamp, except for year: if year is missing,\nthat means all years match. For all fields besides year, at least one Range\nmust be present to match anything.\nTODO: add relative-to-end-of-month\nTODO: add nth day-of-week in month"
15291
+
"description": "StructuredCalendarSpec describes an event specification relative to the\ncalendar, in a form that's easy to work with programmatically. Each field can\nbe one or more ranges.\nA timestamp matches if at least one range of each field matches the\ncorresponding fields of the timestamp, except for year: if year is missing,\nthat means all years match. For all fields besides year, at least one Range\nmust be present to match anything.\nRelative expressions such as \"last day of the month\" or \"third Monday\" are not currently\nrepresentable; callers must enumerate the concrete days they require."
15292
15292
},
15293
15293
"v1TaskIdBlock": {
15294
15294
"type": "object",
@@ -16499,12 +16499,12 @@
16499
16499
"properties": {
16500
16500
"cause": {
16501
16501
"type": "string",
16502
-
"title": "User provided reason for requesting cancellation\nTODO: shall we create a new field with name \"reason\" and deprecate this one?"
16502
+
"title": "User provided reason for requesting cancellation"
16503
16503
},
16504
16504
"externalInitiatedEventId": {
16505
16505
"type": "string",
16506
16506
"format": "int64",
16507
-
"title": "TODO: Is this the ID of the event in the workflow which initiated this cancel, if there was one?"
16507
+
"description": "The ID of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event in the external\nworkflow history when the cancellation was requested by another workflow."
16508
16508
},
16509
16509
"externalWorkflowExecution": {
16510
16510
"$ref": "#/definitions/v1WorkflowExecution"
@@ -16598,18 +16598,18 @@
16598
16598
},
16599
16599
"backoffStartInterval": {
16600
16600
"type": "string",
16601
-
"title": "TODO: How and is this used?"
16601
+
"description": "How long the server will wait before scheduling the first workflow task for the new run.\nUsed for cron, retry, and other continue-as-new cases that server may enforce some minimal\ndelay between new runs for system protection purpose."
16602
16602
},
16603
16603
"initiator": {
16604
16604
"$ref": "#/definitions/v1ContinueAsNewInitiator"
16605
16605
},
16606
16606
"failure": {
16607
16607
"$ref": "#/definitions/apifailurev1Failure",
16608
-
"description": "TODO: David are these right?\nDeprecated. If a workflow's retry policy would cause a new run to start when the current one\nhas failed, this field would be populated with that failure. Now (when supported by server\nand sdk) the final event will be `WORKFLOW_EXECUTION_FAILED` with `new_execution_run_id` set."
16608
+
"description": "Deprecated. If a workflow's retry policy would cause a new run to start when the current one\nhas failed, this field would be populated with that failure. Now (when supported by server\nand sdk) the final event will be `WORKFLOW_EXECUTION_FAILED` with `new_execution_run_id` set."
16609
16609
},
16610
16610
"lastCompletionResult": {
16611
16611
"$ref": "#/definitions/v1Payloads",
16612
-
"title": "TODO: Is this the result of *this* workflow as it continued-as-new?"
16612
+
"description": "The result from the most recent completed run of this workflow. The SDK surfaces this to the\nnew run via APIs such as `GetLastCompletionResult`."
16613
16613
},
16614
16614
"header": {
16615
16615
"$ref": "#/definitions/v1Header"
@@ -17485,7 +17485,7 @@
17485
17485
},
17486
17486
"identity": {
17487
17487
"type": "string",
17488
-
"title": "If a worker explicitly failed this task, it's identity. TODO: What is this set to if server fails the task?"
17488
+
"description": "If a worker explicitly failed this task, this field contains the worker's identity. \nWhen the server generates the failure internally this field is set as 'history-service'."
17489
17489
},
17490
17490
"baseRunId": {
17491
17491
"type": "string",
@@ -17498,7 +17498,7 @@
17498
17498
"forkEventVersion": {
17499
17499
"type": "string",
17500
17500
"format": "int64",
17501
-
"title": "TODO: ?"
17501
+
"description": "Version of the event where the history branch was forked. Used by multi-cluster replication\nduring resets to identify the correct history branch."
17502
17502
},
17503
17503
"binaryChecksum": {
17504
17504
"type": "string",
@@ -17542,7 +17542,7 @@
17542
17542
},
17543
17543
"requestId": {
17544
17544
"type": "string",
17545
-
"title": "TODO: ? Appears unused?"
17545
+
"description": "This field is populated from the RecordWorkflowTaskStartedRequest. Matching service would\nset the request_id on the RecordWorkflowTaskStartedRequest to a new UUID. This is useful\nin case a RecordWorkflowTaskStarted call succeed but matching doesn't get that response,\nso matching could retry and history service would return success if the request_id matches.\nIn that case, matching will continue to deliver the task to worker. Without this field, history\nservice would return AlreadyStarted error, and matching would drop the task."
How long the server will wait before scheduling the first workflow task for the new run.
14035
+
Used for cron, retry, and other continue-as-new cases that server may enforce some minimal
14036
+
delay between new runs for system protection purpose.
14022
14037
initiator:
14023
14038
enum:
14024
14039
- CONTINUE_AS_NEW_INITIATOR_UNSPECIFIED
@@ -14031,14 +14046,15 @@ components:
14031
14046
allOf:
14032
14047
- $ref: '#/components/schemas/Failure'
14033
14048
description: |-
14034
-
TODO: David are these right?
14035
-
Deprecated. If a workflow's retry policy would cause a new run to start when the current one
14049
+
Deprecated. If a workflow's retry policy would cause a new run to start when the current one
14036
14050
has failed, this field would be populated with that failure. Now (when supported by server
14037
14051
and sdk) the final event will be `WORKFLOW_EXECUTION_FAILED` with `new_execution_run_id` set.
14038
14052
lastCompletionResult:
14039
14053
allOf:
14040
14054
- $ref: '#/components/schemas/Payloads'
14041
-
description: 'TODO: Is this the result of *this* workflow as it continued-as-new?'
14055
+
description: |-
14056
+
The result from the most recent completed run of this workflow. The SDK surfaces this to the
14057
+
new run via APIs such as `GetLastCompletionResult`.
14042
14058
header:
14043
14059
$ref: '#/components/schemas/Header'
14044
14060
memo:
@@ -15027,7 +15043,7 @@ components:
15027
15043
description: The failure details
15028
15044
identity:
15029
15045
type: string
15030
-
description: 'If a worker explicitly failed this task, it''s identity. TODO: What is this set to if server fails the task?'
15046
+
description: "If a worker explicitly failed this task, this field contains the worker's identity. \n When the server generates the failure internally this field is set as 'history-service'."
15031
15047
baseRunId:
15032
15048
type: string
15033
15049
description: The original run id of the workflow. For reset workflow.
@@ -15036,7 +15052,9 @@ components:
15036
15052
description: If the workflow is being reset, the new run id.
15037
15053
forkEventVersion:
15038
15054
type: string
15039
-
description: 'TODO: ?'
15055
+
description: |-
15056
+
Version of the event where the history branch was forked. Used by multi-cluster replication
15057
+
during resets to identify the correct history branch.
15040
15058
binaryChecksum:
15041
15059
type: string
15042
15060
description: |-
@@ -15080,7 +15098,13 @@ components:
15080
15098
description: Identity of the worker who picked up this task
15081
15099
requestId:
15082
15100
type: string
15083
-
description: 'TODO: ? Appears unused?'
15101
+
description: |-
15102
+
This field is populated from the RecordWorkflowTaskStartedRequest. Matching service would
15103
+
set the request_id on the RecordWorkflowTaskStartedRequest to a new UUID. This is useful
15104
+
in case a RecordWorkflowTaskStarted call succeed but matching doesn't get that response,
15105
+
so matching could retry and history service would return success if the request_id matches.
15106
+
In that case, matching will continue to deliver the task to worker. Without this field, history
15107
+
service would return AlreadyStarted error, and matching would drop the task.
0 commit comments