Skip to content

Commit 0f84f8c

Browse files
authored
Update sdk-core to pull in removal of macro/license for CI failure (#1331)
* Update sdk-core to pull in removal of macro/license for CI failure * Regen protos * Update cargo lock
1 parent b69ac92 commit 0f84f8c

6 files changed

Lines changed: 122 additions & 93 deletions

File tree

temporalio/bridge/Cargo.lock

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

temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.py

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

temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.pyi

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ class WorkflowActivation(google.protobuf.message.Message):
9393
CONTINUE_AS_NEW_SUGGESTED_FIELD_NUMBER: builtins.int
9494
DEPLOYMENT_VERSION_FOR_CURRENT_TASK_FIELD_NUMBER: builtins.int
9595
LAST_SDK_VERSION_FIELD_NUMBER: builtins.int
96+
SUGGEST_CONTINUE_AS_NEW_REASONS_FIELD_NUMBER: builtins.int
9697
run_id: builtins.str
9798
"""The id of the currently active run of the workflow. Also used as a cache key. There may
9899
only ever be one active workflow task (and hence activation) of a run at one time.
@@ -139,6 +140,16 @@ class WorkflowActivation(google.protobuf.message.Message):
139140
"""
140141
last_sdk_version: builtins.str
141142
"""The last seen SDK version from the most recent WFT completed event"""
143+
@property
144+
def suggest_continue_as_new_reasons(
145+
self,
146+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[
147+
temporalio.api.enums.v1.workflow_pb2.SuggestContinueAsNewReason.ValueType
148+
]:
149+
"""Experimental. Optionally decide the versioning behavior that the first task of the new run should use.
150+
For example, choose to AutoUpgrade on continue-as-new instead of inheriting the pinned version
151+
of the previous run.
152+
"""
142153
def __init__(
143154
self,
144155
*,
@@ -153,6 +164,10 @@ class WorkflowActivation(google.protobuf.message.Message):
153164
deployment_version_for_current_task: temporalio.bridge.proto.common.common_pb2.WorkerDeploymentVersion
154165
| None = ...,
155166
last_sdk_version: builtins.str = ...,
167+
suggest_continue_as_new_reasons: collections.abc.Iterable[
168+
temporalio.api.enums.v1.workflow_pb2.SuggestContinueAsNewReason.ValueType
169+
]
170+
| None = ...,
156171
) -> None: ...
157172
def HasField(
158173
self,
@@ -184,6 +199,8 @@ class WorkflowActivation(google.protobuf.message.Message):
184199
b"last_sdk_version",
185200
"run_id",
186201
b"run_id",
202+
"suggest_continue_as_new_reasons",
203+
b"suggest_continue_as_new_reasons",
187204
"timestamp",
188205
b"timestamp",
189206
],

temporalio/bridge/proto/workflow_commands/workflow_commands_pb2.py

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

temporalio/bridge/proto/workflow_commands/workflow_commands_pb2.pyi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -963,6 +963,7 @@ class ContinueAsNewWorkflowExecution(google.protobuf.message.Message):
963963
SEARCH_ATTRIBUTES_FIELD_NUMBER: builtins.int
964964
RETRY_POLICY_FIELD_NUMBER: builtins.int
965965
VERSIONING_INTENT_FIELD_NUMBER: builtins.int
966+
INITIAL_VERSIONING_BEHAVIOR_FIELD_NUMBER: builtins.int
966967
workflow_type: builtins.str
967968
"""The identifier the lang-specific sdk uses to execute workflow code"""
968969
task_queue: builtins.str
@@ -1016,6 +1017,13 @@ class ContinueAsNewWorkflowExecution(google.protobuf.message.Message):
10161017
temporalio.bridge.proto.common.common_pb2.VersioningIntent.ValueType
10171018
)
10181019
"""Whether the continued workflow should run on a worker with a compatible build id or not."""
1020+
initial_versioning_behavior: (
1021+
temporalio.api.enums.v1.workflow_pb2.ContinueAsNewVersioningBehavior.ValueType
1022+
)
1023+
"""Experimental. Optionally decide the versioning behavior that the first task of the new run should use.
1024+
For example, choose to AutoUpgrade on continue-as-new instead of inheriting the pinned version
1025+
of the previous run.
1026+
"""
10191027
def __init__(
10201028
self,
10211029
*,
@@ -1041,6 +1049,7 @@ class ContinueAsNewWorkflowExecution(google.protobuf.message.Message):
10411049
| None = ...,
10421050
retry_policy: temporalio.api.common.v1.message_pb2.RetryPolicy | None = ...,
10431051
versioning_intent: temporalio.bridge.proto.common.common_pb2.VersioningIntent.ValueType = ...,
1052+
initial_versioning_behavior: temporalio.api.enums.v1.workflow_pb2.ContinueAsNewVersioningBehavior.ValueType = ...,
10441053
) -> None: ...
10451054
def HasField(
10461055
self,
@@ -1060,6 +1069,8 @@ class ContinueAsNewWorkflowExecution(google.protobuf.message.Message):
10601069
b"arguments",
10611070
"headers",
10621071
b"headers",
1072+
"initial_versioning_behavior",
1073+
b"initial_versioning_behavior",
10631074
"memo",
10641075
b"memo",
10651076
"retry_policy",

temporalio/bridge/sdk-core

0 commit comments

Comments
 (0)