Skip to content

Commit b43165e

Browse files
committed
Update core & protos
1 parent fb3dccd commit b43165e

File tree

4 files changed

+32
-17
lines changed

4 files changed

+32
-17
lines changed

temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.pyi

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ class WorkflowActivation(google.protobuf.message.Message):
5353
This is because:
5454
* Patches are expected to apply to the entire activation
5555
* Signal and update handlers should be invoked before workflow routines are iterated. That is to
56-
say before the users' main workflow function and anything spawned by it is allowed to continue.
56+
say before the users' main workflow function and anything spawned by it is allowed to continue.
5757
* Local activities resolutions go after other normal jobs because while *not* replaying, they
58-
will always take longer than anything else that produces an immediate job (which is
59-
effectively instant). When *replaying* we need to scan ahead for LA markers so that we can
60-
resolve them in the same activation that they completed in when not replaying. However, doing
61-
so would, by default, put those resolutions *before* any other immediate jobs that happened
62-
in that same activation (prime example: cancelling not-wait-for-cancel activities). So, we do
63-
this to ensure the LA resolution happens after that cancel (or whatever else it may be) as it
64-
normally would have when executing.
58+
will always take longer than anything else that produces an immediate job (which is
59+
effectively instant). When *replaying* we need to scan ahead for LA markers so that we can
60+
resolve them in the same activation that they completed in when not replaying. However, doing
61+
so would, by default, put those resolutions *before* any other immediate jobs that happened
62+
in that same activation (prime example: cancelling not-wait-for-cancel activities). So, we do
63+
this to ensure the LA resolution happens after that cancel (or whatever else it may be) as it
64+
normally would have when executing.
6565
* Queries always go last (and, in fact, always come in their own activation)
6666
* Evictions also always come in their own activation
6767

temporalio/bridge/proto/workflow_completion/workflow_completion_pb2.py

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

temporalio/bridge/proto/workflow_completion/workflow_completion_pb2.pyi

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import google.protobuf.internal.containers
1212
import google.protobuf.message
1313

1414
import temporalio.api.enums.v1.failed_cause_pb2
15+
import temporalio.api.enums.v1.workflow_pb2
1516
import temporalio.api.failure.v1.message_pb2
1617
import temporalio.bridge.proto.workflow_commands.workflow_commands_pb2
1718

@@ -75,6 +76,7 @@ class Success(google.protobuf.message.Message):
7576

7677
COMMANDS_FIELD_NUMBER: builtins.int
7778
USED_INTERNAL_FLAGS_FIELD_NUMBER: builtins.int
79+
VERSIONING_BEHAVIOR_FIELD_NUMBER: builtins.int
7880
@property
7981
def commands(
8082
self,
@@ -87,6 +89,10 @@ class Success(google.protobuf.message.Message):
8789
self,
8890
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
8991
"""Any internal flags which the lang SDK used in the processing of this activation"""
92+
versioning_behavior: (
93+
temporalio.api.enums.v1.workflow_pb2.VersioningBehavior.ValueType
94+
)
95+
"""The versioning behavior this workflow is currently using"""
9096
def __init__(
9197
self,
9298
*,
@@ -95,11 +101,17 @@ class Success(google.protobuf.message.Message):
95101
]
96102
| None = ...,
97103
used_internal_flags: collections.abc.Iterable[builtins.int] | None = ...,
104+
versioning_behavior: temporalio.api.enums.v1.workflow_pb2.VersioningBehavior.ValueType = ...,
98105
) -> None: ...
99106
def ClearField(
100107
self,
101108
field_name: typing_extensions.Literal[
102-
"commands", b"commands", "used_internal_flags", b"used_internal_flags"
109+
"commands",
110+
b"commands",
111+
"used_internal_flags",
112+
b"used_internal_flags",
113+
"versioning_behavior",
114+
b"versioning_behavior",
103115
],
104116
) -> None: ...
105117

temporalio/bridge/sdk-core

Submodule sdk-core updated 48 files

0 commit comments

Comments
 (0)