Skip to content

Commit dbf8171

Browse files
authored
Update sdk-core submodule to latest (#1299)
1 parent 9b4a15e commit dbf8171

22 files changed

Lines changed: 801 additions & 544 deletions

temporalio/api/command/v1/message_pb2.py

Lines changed: 8 additions & 8 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: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,8 @@ class ScheduleNexusOperationCommandAttributes(google.protobuf.message.Message):
944944
INPUT_FIELD_NUMBER: builtins.int
945945
SCHEDULE_TO_CLOSE_TIMEOUT_FIELD_NUMBER: builtins.int
946946
NEXUS_HEADER_FIELD_NUMBER: builtins.int
947+
SCHEDULE_TO_START_TIMEOUT_FIELD_NUMBER: builtins.int
948+
START_TO_CLOSE_TIMEOUT_FIELD_NUMBER: builtins.int
947949
endpoint: builtins.str
948950
"""Endpoint name, must exist in the endpoint registry or this command will fail."""
949951
service: builtins.str
@@ -975,6 +977,29 @@ class ScheduleNexusOperationCommandAttributes(google.protobuf.message.Message):
975977
Note these headers are not the same as Temporal headers on internal activities and child workflows, these are
976978
transmitted to Nexus operations that may be external and are not traditional payloads.
977979
"""
980+
@property
981+
def schedule_to_start_timeout(self) -> google.protobuf.duration_pb2.Duration:
982+
"""Schedule-to-start timeout for this operation.
983+
Indicates how long the caller is willing to wait for the operation to be started (or completed if synchronous)
984+
by the handler. If the operation is not started within this timeout, it will fail with
985+
TIMEOUT_TYPE_SCHEDULE_TO_START.
986+
If not set or zero, no schedule-to-start timeout is enforced.
987+
(-- api-linter: core::0140::prepositions=disabled
988+
aip.dev/not-precedent: "to" is used to indicate interval. --)
989+
Requires server version 1.31.0 or later.
990+
"""
991+
@property
992+
def start_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration:
993+
"""Start-to-close timeout for this operation.
994+
Indicates how long the caller is willing to wait for an asynchronous operation to complete after it has been
995+
started. If the operation does not complete within this timeout after starting, it will fail with
996+
TIMEOUT_TYPE_START_TO_CLOSE.
997+
Only applies to asynchronous operations. Synchronous operations ignore this timeout.
998+
If not set or zero, no start-to-close timeout is enforced.
999+
(-- api-linter: core::0140::prepositions=disabled
1000+
aip.dev/not-precedent: "to" is used to indicate interval. --)
1001+
Requires server version 1.31.0 or later.
1002+
"""
9781003
def __init__(
9791004
self,
9801005
*,
@@ -984,11 +1009,20 @@ class ScheduleNexusOperationCommandAttributes(google.protobuf.message.Message):
9841009
input: temporalio.api.common.v1.message_pb2.Payload | None = ...,
9851010
schedule_to_close_timeout: google.protobuf.duration_pb2.Duration | None = ...,
9861011
nexus_header: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
1012+
schedule_to_start_timeout: google.protobuf.duration_pb2.Duration | None = ...,
1013+
start_to_close_timeout: google.protobuf.duration_pb2.Duration | None = ...,
9871014
) -> None: ...
9881015
def HasField(
9891016
self,
9901017
field_name: typing_extensions.Literal[
991-
"input", b"input", "schedule_to_close_timeout", b"schedule_to_close_timeout"
1018+
"input",
1019+
b"input",
1020+
"schedule_to_close_timeout",
1021+
b"schedule_to_close_timeout",
1022+
"schedule_to_start_timeout",
1023+
b"schedule_to_start_timeout",
1024+
"start_to_close_timeout",
1025+
b"start_to_close_timeout",
9921026
],
9931027
) -> builtins.bool: ...
9941028
def ClearField(
@@ -1004,8 +1038,12 @@ class ScheduleNexusOperationCommandAttributes(google.protobuf.message.Message):
10041038
b"operation",
10051039
"schedule_to_close_timeout",
10061040
b"schedule_to_close_timeout",
1041+
"schedule_to_start_timeout",
1042+
b"schedule_to_start_timeout",
10071043
"service",
10081044
b"service",
1045+
"start_to_close_timeout",
1046+
b"start_to_close_timeout",
10091047
],
10101048
) -> None: ...
10111049

temporalio/api/enums/v1/failed_cause_pb2.py

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

temporalio/api/enums/v1/failed_cause_pb2.pyi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ class _WorkflowTaskFailedCauseEnumTypeWrapper(
170170
_WorkflowTaskFailedCause.ValueType
171171
) # 36
172172
"""A workflow task failed because a grpc message was too large."""
173+
WORKFLOW_TASK_FAILED_CAUSE_PAYLOADS_TOO_LARGE: (
174+
_WorkflowTaskFailedCause.ValueType
175+
) # 37
176+
"""A workflow task failed because payloads were too large."""
173177

174178
class WorkflowTaskFailedCause(
175179
_WorkflowTaskFailedCause, metaclass=_WorkflowTaskFailedCauseEnumTypeWrapper
@@ -314,6 +318,8 @@ WORKFLOW_TASK_FAILED_CAUSE_GRPC_MESSAGE_TOO_LARGE: (
314318
WorkflowTaskFailedCause.ValueType
315319
) # 36
316320
"""A workflow task failed because a grpc message was too large."""
321+
WORKFLOW_TASK_FAILED_CAUSE_PAYLOADS_TOO_LARGE: WorkflowTaskFailedCause.ValueType # 37
322+
"""A workflow task failed because payloads were too large."""
317323
global___WorkflowTaskFailedCause = WorkflowTaskFailedCause
318324

319325
class _StartChildWorkflowExecutionFailedCause:

temporalio/api/history/v1/message_pb2.py

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

temporalio/api/history/v1/message_pb2.pyi

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3650,6 +3650,8 @@ class NexusOperationScheduledEventAttributes(google.protobuf.message.Message):
36503650
WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int
36513651
REQUEST_ID_FIELD_NUMBER: builtins.int
36523652
ENDPOINT_ID_FIELD_NUMBER: builtins.int
3653+
SCHEDULE_TO_START_TIMEOUT_FIELD_NUMBER: builtins.int
3654+
START_TO_CLOSE_TIMEOUT_FIELD_NUMBER: builtins.int
36533655
endpoint: builtins.str
36543656
"""Endpoint name, must exist in the endpoint registry."""
36553657
service: builtins.str
@@ -3689,6 +3691,20 @@ class NexusOperationScheduledEventAttributes(google.protobuf.message.Message):
36893691
This is stored on the event and used internally by the server in case the endpoint is renamed from the time the
36903692
event was originally scheduled.
36913693
"""
3694+
@property
3695+
def schedule_to_start_timeout(self) -> google.protobuf.duration_pb2.Duration:
3696+
"""Schedule-to-start timeout for this operation.
3697+
See ScheduleNexusOperationCommandAttributes.schedule_to_start_timeout for details.
3698+
(-- api-linter: core::0140::prepositions=disabled
3699+
aip.dev/not-precedent: "to" is used to indicate interval. --)
3700+
"""
3701+
@property
3702+
def start_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration:
3703+
"""Start-to-close timeout for this operation.
3704+
See ScheduleNexusOperationCommandAttributes.start_to_close_timeout for details.
3705+
(-- api-linter: core::0140::prepositions=disabled
3706+
aip.dev/not-precedent: "to" is used to indicate interval. --)
3707+
"""
36923708
def __init__(
36933709
self,
36943710
*,
@@ -3701,11 +3717,20 @@ class NexusOperationScheduledEventAttributes(google.protobuf.message.Message):
37013717
workflow_task_completed_event_id: builtins.int = ...,
37023718
request_id: builtins.str = ...,
37033719
endpoint_id: builtins.str = ...,
3720+
schedule_to_start_timeout: google.protobuf.duration_pb2.Duration | None = ...,
3721+
start_to_close_timeout: google.protobuf.duration_pb2.Duration | None = ...,
37043722
) -> None: ...
37053723
def HasField(
37063724
self,
37073725
field_name: typing_extensions.Literal[
3708-
"input", b"input", "schedule_to_close_timeout", b"schedule_to_close_timeout"
3726+
"input",
3727+
b"input",
3728+
"schedule_to_close_timeout",
3729+
b"schedule_to_close_timeout",
3730+
"schedule_to_start_timeout",
3731+
b"schedule_to_start_timeout",
3732+
"start_to_close_timeout",
3733+
b"start_to_close_timeout",
37093734
],
37103735
) -> builtins.bool: ...
37113736
def ClearField(
@@ -3725,8 +3750,12 @@ class NexusOperationScheduledEventAttributes(google.protobuf.message.Message):
37253750
b"request_id",
37263751
"schedule_to_close_timeout",
37273752
b"schedule_to_close_timeout",
3753+
"schedule_to_start_timeout",
3754+
b"schedule_to_start_timeout",
37283755
"service",
37293756
b"service",
3757+
"start_to_close_timeout",
3758+
b"start_to_close_timeout",
37303759
"workflow_task_completed_event_id",
37313760
b"workflow_task_completed_event_id",
37323761
],

0 commit comments

Comments
 (0)