Skip to content

Commit e436ecc

Browse files
authored
Multiple History Replay support (#158)
1 parent 0dd2312 commit e436ecc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1969
-1987
lines changed

temporalio/api/batch/v1/message_pb2.py

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

temporalio/api/batch/v1/message_pb2.pyi

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,8 @@ class BatchOperationTermination(google.protobuf.message.Message):
9393

9494
DESCRIPTOR: google.protobuf.descriptor.Descriptor
9595

96-
REASON_FIELD_NUMBER: builtins.int
9796
DETAILS_FIELD_NUMBER: builtins.int
9897
IDENTITY_FIELD_NUMBER: builtins.int
99-
reason: builtins.str
100-
"""Reason of terminate workflows"""
10198
@property
10299
def details(self) -> temporalio.api.common.v1.message_pb2.Payloads:
103100
"""Serialized value(s) to provide to the termination event"""
@@ -106,7 +103,6 @@ class BatchOperationTermination(google.protobuf.message.Message):
106103
def __init__(
107104
self,
108105
*,
109-
reason: builtins.str = ...,
110106
details: temporalio.api.common.v1.message_pb2.Payloads | None = ...,
111107
identity: builtins.str = ...,
112108
) -> None: ...
@@ -116,7 +112,7 @@ class BatchOperationTermination(google.protobuf.message.Message):
116112
def ClearField(
117113
self,
118114
field_name: typing_extensions.Literal[
119-
"details", b"details", "identity", b"identity", "reason", b"reason"
115+
"details", b"details", "identity", b"identity"
120116
],
121117
) -> None: ...
122118

@@ -181,23 +177,16 @@ class BatchOperationCancellation(google.protobuf.message.Message):
181177

182178
DESCRIPTOR: google.protobuf.descriptor.Descriptor
183179

184-
REASON_FIELD_NUMBER: builtins.int
185180
IDENTITY_FIELD_NUMBER: builtins.int
186-
reason: builtins.str
187-
"""Reason of cancel workflows"""
188181
identity: builtins.str
189182
"""The identity of the worker/client"""
190183
def __init__(
191184
self,
192185
*,
193-
reason: builtins.str = ...,
194186
identity: builtins.str = ...,
195187
) -> None: ...
196188
def ClearField(
197-
self,
198-
field_name: typing_extensions.Literal[
199-
"identity", b"identity", "reason", b"reason"
200-
],
189+
self, field_name: typing_extensions.Literal["identity", b"identity"]
201190
) -> None: ...
202191

203192
global___BatchOperationCancellation = BatchOperationCancellation

temporalio/api/command/v1/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
CompleteWorkflowUpdateCommandAttributes,
88
ContinueAsNewWorkflowExecutionCommandAttributes,
99
FailWorkflowExecutionCommandAttributes,
10+
ModifyWorkflowPropertiesCommandAttributes,
1011
RecordMarkerCommandAttributes,
1112
RequestCancelActivityTaskCommandAttributes,
1213
RequestCancelExternalWorkflowExecutionCommandAttributes,
@@ -26,6 +27,7 @@
2627
"CompleteWorkflowUpdateCommandAttributes",
2728
"ContinueAsNewWorkflowExecutionCommandAttributes",
2829
"FailWorkflowExecutionCommandAttributes",
30+
"ModifyWorkflowPropertiesCommandAttributes",
2931
"RecordMarkerCommandAttributes",
3032
"RequestCancelActivityTaskCommandAttributes",
3133
"RequestCancelExternalWorkflowExecutionCommandAttributes",

temporalio/api/command/v1/message_pb2.py

Lines changed: 17 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

temporalio/api/command/v1/message_pb2.pyi

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,32 @@ global___UpsertWorkflowSearchAttributesCommandAttributes = (
476476
UpsertWorkflowSearchAttributesCommandAttributes
477477
)
478478

479+
class ModifyWorkflowPropertiesCommandAttributes(google.protobuf.message.Message):
480+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
481+
482+
UPSERTED_MEMO_FIELD_NUMBER: builtins.int
483+
@property
484+
def upserted_memo(self) -> temporalio.api.common.v1.message_pb2.Memo:
485+
"""If set, update the workflow memo with the provided values. The values will be merged with
486+
the existing memo. If the user wants to delete values, a default/empty Payload should be
487+
used as the value for the key being deleted.
488+
"""
489+
def __init__(
490+
self,
491+
*,
492+
upserted_memo: temporalio.api.common.v1.message_pb2.Memo | None = ...,
493+
) -> None: ...
494+
def HasField(
495+
self, field_name: typing_extensions.Literal["upserted_memo", b"upserted_memo"]
496+
) -> builtins.bool: ...
497+
def ClearField(
498+
self, field_name: typing_extensions.Literal["upserted_memo", b"upserted_memo"]
499+
) -> None: ...
500+
501+
global___ModifyWorkflowPropertiesCommandAttributes = (
502+
ModifyWorkflowPropertiesCommandAttributes
503+
)
504+
479505
class RecordMarkerCommandAttributes(google.protobuf.message.Message):
480506
DESCRIPTOR: google.protobuf.descriptor.Descriptor
481507

@@ -922,6 +948,7 @@ class Command(google.protobuf.message.Message):
922948
UPSERT_WORKFLOW_SEARCH_ATTRIBUTES_COMMAND_ATTRIBUTES_FIELD_NUMBER: builtins.int
923949
ACCEPT_WORKFLOW_UPDATE_COMMAND_ATTRIBUTES_FIELD_NUMBER: builtins.int
924950
COMPLETE_WORKFLOW_UPDATE_COMMAND_ATTRIBUTES_FIELD_NUMBER: builtins.int
951+
MODIFY_WORKFLOW_PROPERTIES_COMMAND_ATTRIBUTES_FIELD_NUMBER: builtins.int
925952
command_type: temporalio.api.enums.v1.command_type_pb2.CommandType.ValueType
926953
@property
927954
def schedule_activity_task_command_attributes(
@@ -983,6 +1010,10 @@ class Command(google.protobuf.message.Message):
9831010
def complete_workflow_update_command_attributes(
9841011
self,
9851012
) -> global___CompleteWorkflowUpdateCommandAttributes: ...
1013+
@property
1014+
def modify_workflow_properties_command_attributes(
1015+
self,
1016+
) -> global___ModifyWorkflowPropertiesCommandAttributes: ...
9861017
def __init__(
9871018
self,
9881019
*,
@@ -1017,6 +1048,8 @@ class Command(google.protobuf.message.Message):
10171048
| None = ...,
10181049
complete_workflow_update_command_attributes: global___CompleteWorkflowUpdateCommandAttributes
10191050
| None = ...,
1051+
modify_workflow_properties_command_attributes: global___ModifyWorkflowPropertiesCommandAttributes
1052+
| None = ...,
10201053
) -> None: ...
10211054
def HasField(
10221055
self,
@@ -1037,6 +1070,8 @@ class Command(google.protobuf.message.Message):
10371070
b"continue_as_new_workflow_execution_command_attributes",
10381071
"fail_workflow_execution_command_attributes",
10391072
b"fail_workflow_execution_command_attributes",
1073+
"modify_workflow_properties_command_attributes",
1074+
b"modify_workflow_properties_command_attributes",
10401075
"record_marker_command_attributes",
10411076
b"record_marker_command_attributes",
10421077
"request_cancel_activity_task_command_attributes",
@@ -1076,6 +1111,8 @@ class Command(google.protobuf.message.Message):
10761111
b"continue_as_new_workflow_execution_command_attributes",
10771112
"fail_workflow_execution_command_attributes",
10781113
b"fail_workflow_execution_command_attributes",
1114+
"modify_workflow_properties_command_attributes",
1115+
b"modify_workflow_properties_command_attributes",
10791116
"record_marker_command_attributes",
10801117
b"record_marker_command_attributes",
10811118
"request_cancel_activity_task_command_attributes",
@@ -1112,6 +1149,7 @@ class Command(google.protobuf.message.Message):
11121149
"upsert_workflow_search_attributes_command_attributes",
11131150
"accept_workflow_update_command_attributes",
11141151
"complete_workflow_update_command_attributes",
1152+
"modify_workflow_properties_command_attributes",
11151153
] | None: ...
11161154

11171155
global___Command = Command

temporalio/api/enums/v1/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from .batch_operation_pb2 import BatchOperationState, BatchOperationType
2-
from .cluster_pb2 import ClusterMemberRole
32
from .command_type_pb2 import CommandType
43
from .common_pb2 import EncodingType, IndexedValueType, Severity
54
from .event_type_pb2 import EventType
@@ -36,7 +35,6 @@
3635
"BatchOperationState",
3736
"BatchOperationType",
3837
"CancelExternalWorkflowExecutionFailedCause",
39-
"ClusterMemberRole",
4038
"CommandType",
4139
"ContinueAsNewInitiator",
4240
"EncodingType",

temporalio/api/enums/v1/cluster_pb2.py

Lines changed: 0 additions & 29 deletions
This file was deleted.

temporalio/api/enums/v1/cluster_pb2.pyi

Lines changed: 0 additions & 65 deletions
This file was deleted.

temporalio/api/enums/v1/cluster_pb2_grpc.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

temporalio/api/enums/v1/cluster_pb2_grpc.pyi

Lines changed: 0 additions & 25 deletions
This file was deleted.

temporalio/api/enums/v1/command_type_pb2.py

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

temporalio/api/enums/v1/command_type_pb2.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ class _CommandTypeEnumTypeWrapper(
6565
"""Indicates that an update has completed and carries either the success or
6666
failure outcome of said update.
6767
"""
68+
COMMAND_TYPE_MODIFY_WORKFLOW_PROPERTIES: _CommandType.ValueType # 16
6869

6970
class CommandType(_CommandType, metaclass=_CommandTypeEnumTypeWrapper):
7071
"""Whenever this list of command types is changed do change the function shouldBufferEvent in mutableStateBuilder.go to make sure to do the correct event ordering."""
@@ -89,4 +90,5 @@ COMMAND_TYPE_COMPLETE_WORKFLOW_UPDATE: CommandType.ValueType # 15
8990
"""Indicates that an update has completed and carries either the success or
9091
failure outcome of said update.
9192
"""
93+
COMMAND_TYPE_MODIFY_WORKFLOW_PROPERTIES: CommandType.ValueType # 16
9294
global___CommandType = CommandType

0 commit comments

Comments
 (0)