Skip to content

Commit 07b2043

Browse files
authored
Update core and update Rust dependencies (#337)
1 parent b75a567 commit 07b2043

Some content is hidden

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

46 files changed

+1919
-1052
lines changed

scripts/gen_protos.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
for v in proto_dir.glob("**/*.proto")
2424
if not str(v).startswith(str(testsrv_proto_dir / "dependencies"))
2525
and not "health" in str(v)
26+
and not "google" in str(v)
2627
]
2728
proto_paths.extend(test_proto_dir.glob("**/*.proto"))
2829
proto_paths.extend(additional_proto_dir.glob("**/*.proto"))

temporalio/api/batch/v1/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
BatchOperationCancellation,
33
BatchOperationDeletion,
44
BatchOperationInfo,
5+
BatchOperationReset,
56
BatchOperationSignal,
67
BatchOperationTermination,
78
)
@@ -10,6 +11,7 @@
1011
"BatchOperationCancellation",
1112
"BatchOperationDeletion",
1213
"BatchOperationInfo",
14+
"BatchOperationReset",
1315
"BatchOperationSignal",
1416
"BatchOperationTermination",
1517
]

temporalio/api/batch/v1/message_pb2.py

Lines changed: 28 additions & 11 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: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import google.protobuf.timestamp_pb2
3030
import sys
3131
import temporalio.api.common.v1.message_pb2
3232
import temporalio.api.enums.v1.batch_operation_pb2
33+
import temporalio.api.enums.v1.reset_pb2
3334

3435
if sys.version_info >= (3, 8):
3536
import typing as typing_extensions
@@ -211,3 +212,40 @@ class BatchOperationDeletion(google.protobuf.message.Message):
211212
) -> None: ...
212213

213214
global___BatchOperationDeletion = BatchOperationDeletion
215+
216+
class BatchOperationReset(google.protobuf.message.Message):
217+
"""BatchOperationReset sends reset requests to batch workflows.
218+
Keep the parameter in sync with temporalio.api.workflowservice.v1.ResetWorkflowExecutionRequest.
219+
"""
220+
221+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
222+
223+
RESET_TYPE_FIELD_NUMBER: builtins.int
224+
RESET_REAPPLY_TYPE_FIELD_NUMBER: builtins.int
225+
IDENTITY_FIELD_NUMBER: builtins.int
226+
reset_type: temporalio.api.enums.v1.reset_pb2.ResetType.ValueType
227+
"""Reset type."""
228+
reset_reapply_type: temporalio.api.enums.v1.reset_pb2.ResetReapplyType.ValueType
229+
"""History event reapply options."""
230+
identity: builtins.str
231+
"""The identity of the worker/client."""
232+
def __init__(
233+
self,
234+
*,
235+
reset_type: temporalio.api.enums.v1.reset_pb2.ResetType.ValueType = ...,
236+
reset_reapply_type: temporalio.api.enums.v1.reset_pb2.ResetReapplyType.ValueType = ...,
237+
identity: builtins.str = ...,
238+
) -> None: ...
239+
def ClearField(
240+
self,
241+
field_name: typing_extensions.Literal[
242+
"identity",
243+
b"identity",
244+
"reset_reapply_type",
245+
b"reset_reapply_type",
246+
"reset_type",
247+
b"reset_type",
248+
],
249+
) -> None: ...
250+
251+
global___BatchOperationReset = BatchOperationReset

temporalio/api/command/v1/message_pb2.py

Lines changed: 34 additions & 34 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: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class ScheduleActivityTaskCommandAttributes(google.protobuf.message.Message):
5757
HEARTBEAT_TIMEOUT_FIELD_NUMBER: builtins.int
5858
RETRY_POLICY_FIELD_NUMBER: builtins.int
5959
REQUEST_EAGER_EXECUTION_FIELD_NUMBER: builtins.int
60+
USE_COMPATIBLE_VERSION_FIELD_NUMBER: builtins.int
6061
activity_id: builtins.str
6162
@property
6263
def activity_type(self) -> temporalio.api.common.v1.message_pb2.ActivityType: ...
@@ -110,6 +111,11 @@ class ScheduleActivityTaskCommandAttributes(google.protobuf.message.Message):
110111
"""Request to start the activity directly bypassing matching service and worker polling
111112
The slot for executing the activity should be reserved when setting this field to true.
112113
"""
114+
use_compatible_version: builtins.bool
115+
"""If this is set, the workflow executing this command wishes to start the activity using
116+
a version compatible with the version that this workflow most recently ran on, if such
117+
behavior is possible.
118+
"""
113119
def __init__(
114120
self,
115121
*,
@@ -124,6 +130,7 @@ class ScheduleActivityTaskCommandAttributes(google.protobuf.message.Message):
124130
heartbeat_timeout: google.protobuf.duration_pb2.Duration | None = ...,
125131
retry_policy: temporalio.api.common.v1.message_pb2.RetryPolicy | None = ...,
126132
request_eager_execution: builtins.bool = ...,
133+
use_compatible_version: builtins.bool = ...,
127134
) -> None: ...
128135
def HasField(
129136
self,
@@ -173,6 +180,8 @@ class ScheduleActivityTaskCommandAttributes(google.protobuf.message.Message):
173180
b"start_to_close_timeout",
174181
"task_queue",
175182
b"task_queue",
183+
"use_compatible_version",
184+
b"use_compatible_version",
176185
],
177186
) -> None: ...
178187

@@ -591,6 +600,7 @@ class ContinueAsNewWorkflowExecutionCommandAttributes(google.protobuf.message.Me
591600
HEADER_FIELD_NUMBER: builtins.int
592601
MEMO_FIELD_NUMBER: builtins.int
593602
SEARCH_ATTRIBUTES_FIELD_NUMBER: builtins.int
603+
USE_COMPATIBLE_VERSION_FIELD_NUMBER: builtins.int
594604
@property
595605
def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ...
596606
@property
@@ -626,6 +636,10 @@ class ContinueAsNewWorkflowExecutionCommandAttributes(google.protobuf.message.Me
626636
def search_attributes(
627637
self,
628638
) -> temporalio.api.common.v1.message_pb2.SearchAttributes: ...
639+
use_compatible_version: builtins.bool
640+
"""If this is set, the workflow executing this command wishes to continue as new using a version
641+
compatible with the version that this workflow most recently ran on.
642+
"""
629643
def __init__(
630644
self,
631645
*,
@@ -645,6 +659,7 @@ class ContinueAsNewWorkflowExecutionCommandAttributes(google.protobuf.message.Me
645659
memo: temporalio.api.common.v1.message_pb2.Memo | None = ...,
646660
search_attributes: temporalio.api.common.v1.message_pb2.SearchAttributes
647661
| None = ...,
662+
use_compatible_version: builtins.bool = ...,
648663
) -> None: ...
649664
def HasField(
650665
self,
@@ -700,6 +715,8 @@ class ContinueAsNewWorkflowExecutionCommandAttributes(google.protobuf.message.Me
700715
b"search_attributes",
701716
"task_queue",
702717
b"task_queue",
718+
"use_compatible_version",
719+
b"use_compatible_version",
703720
"workflow_run_timeout",
704721
b"workflow_run_timeout",
705722
"workflow_task_timeout",
@@ -732,6 +749,7 @@ class StartChildWorkflowExecutionCommandAttributes(google.protobuf.message.Messa
732749
HEADER_FIELD_NUMBER: builtins.int
733750
MEMO_FIELD_NUMBER: builtins.int
734751
SEARCH_ATTRIBUTES_FIELD_NUMBER: builtins.int
752+
USE_COMPATIBLE_VERSION_FIELD_NUMBER: builtins.int
735753
namespace: builtins.str
736754
workflow_id: builtins.str
737755
@property
@@ -766,6 +784,11 @@ class StartChildWorkflowExecutionCommandAttributes(google.protobuf.message.Messa
766784
def search_attributes(
767785
self,
768786
) -> temporalio.api.common.v1.message_pb2.SearchAttributes: ...
787+
use_compatible_version: builtins.bool
788+
"""If this is set, the workflow executing this command wishes to start the child workflow using
789+
a version compatible with the version that this workflow most recently ran on, if such
790+
behavior is possible.
791+
"""
769792
def __init__(
770793
self,
771794
*,
@@ -786,6 +809,7 @@ class StartChildWorkflowExecutionCommandAttributes(google.protobuf.message.Messa
786809
memo: temporalio.api.common.v1.message_pb2.Memo | None = ...,
787810
search_attributes: temporalio.api.common.v1.message_pb2.SearchAttributes
788811
| None = ...,
812+
use_compatible_version: builtins.bool = ...,
789813
) -> None: ...
790814
def HasField(
791815
self,
@@ -835,6 +859,8 @@ class StartChildWorkflowExecutionCommandAttributes(google.protobuf.message.Messa
835859
b"search_attributes",
836860
"task_queue",
837861
b"task_queue",
862+
"use_compatible_version",
863+
b"use_compatible_version",
838864
"workflow_execution_timeout",
839865
b"workflow_execution_timeout",
840866
"workflow_id",

temporalio/api/common/v1/message_pb2.py

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

0 commit comments

Comments
 (0)