Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions temporalio/api/activity/v1/message_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 14 additions & 1 deletion temporalio/api/activity/v1/message_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,23 @@ class ActivityExecutionOutcome(google.protobuf.message.Message):

RESULT_FIELD_NUMBER: builtins.int
FAILURE_FIELD_NUMBER: builtins.int
RETRY_STATE_FIELD_NUMBER: builtins.int
@property
def result(self) -> temporalio.api.common.v1.message_pb2.Payloads:
"""The result if the activity completed successfully."""
@property
def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure:
"""The failure if the activity completed unsuccessfully."""
retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType
"""The retry state associated with an unsuccessful activity execution.
This field is only meaningful when `failure` is set.
"""
def __init__(
self,
*,
result: temporalio.api.common.v1.message_pb2.Payloads | None = ...,
failure: temporalio.api.failure.v1.message_pb2.Failure | None = ...,
retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType = ...,
) -> None: ...
def HasField(
self,
Expand All @@ -57,7 +63,14 @@ class ActivityExecutionOutcome(google.protobuf.message.Message):
def ClearField(
self,
field_name: typing_extensions.Literal[
"failure", b"failure", "result", b"result", "value", b"value"
"failure",
b"failure",
"result",
b"result",
"retry_state",
b"retry_state",
"value",
b"value",
],
) -> None: ...
def WhichOneof(
Expand Down
6 changes: 6 additions & 0 deletions temporalio/api/common/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Callback,
DataBlob,
Execution,
FastForwardConfig,
Header,
Link,
Memo,
Expand All @@ -17,6 +18,8 @@
RetryPolicy,
SearchAttributes,
TimeSkippingConfig,
TimeSkippingFastForwardInfo,
TimeSkippingInfo,
TimeSkippingStatePropagation,
WorkerSelector,
WorkerVersionCapabilities,
Expand All @@ -30,6 +33,7 @@
"Callback",
"DataBlob",
"Execution",
"FastForwardConfig",
"GrpcStatus",
"Header",
"Link",
Expand All @@ -44,6 +48,8 @@
"RetryPolicy",
"SearchAttributes",
"TimeSkippingConfig",
"TimeSkippingFastForwardInfo",
"TimeSkippingInfo",
"TimeSkippingStatePropagation",
"WorkerSelector",
"WorkerVersionCapabilities",
Expand Down
Loading
Loading