File tree Expand file tree Collapse file tree 6 files changed +32
-3
lines changed Expand file tree Collapse file tree 6 files changed +32
-3
lines changed Original file line number Diff line number Diff line change @@ -7272,7 +7272,7 @@ class NexusCallback:
7272
7272
"""Nexus callback to attach to events such as workflow completion.
7273
7273
7274
7274
.. warning::
7275
- This option is experimental and unstable.
7275
+ This API is experimental and unstable.
7276
7276
"""
7277
7277
7278
7278
url : str
Original file line number Diff line number Diff line change 1
1
"""Temporal Nexus support
2
2
3
+ .. warning::
4
+ Nexus APIs are experimental and unstable.
5
+
3
6
See https://github.com/temporalio/sdk-python/tree/main#nexus
4
7
"""
5
8
Original file line number Diff line number Diff line change 55
55
class Info :
56
56
"""Information about the running Nexus operation.
57
57
58
+ .. warning::
59
+ This API is experimental and unstable.
60
+
58
61
Retrieved inside a Nexus operation handler via :py:func:`info`.
59
62
"""
60
63
@@ -175,7 +178,11 @@ def _add_outbound_links(
175
178
176
179
177
180
class WorkflowRunOperationContext (StartOperationContext ):
178
- """Context received by a workflow run operation."""
181
+ """Context received by a workflow run operation.
182
+
183
+ .. warning::
184
+ This API is experimental and unstable.
185
+ """
179
186
180
187
def __init__ (self , * args , ** kwargs ):
181
188
"""Initialize the workflow run operation context."""
Original file line number Diff line number Diff line change 17
17
class WorkflowHandle (Generic [OutputT ]):
18
18
"""A handle to a workflow that is backing a Nexus operation.
19
19
20
+ .. warning::
21
+ This API is experimental and unstable.
22
+
20
23
Do not instantiate this directly. Use
21
24
:py:func:`temporalio.nexus.WorkflowRunOperationContext.start_workflow` to create a
22
25
handle.
Original file line number Diff line number Diff line change @@ -164,6 +164,9 @@ def __init__(
164
164
may be async functions or non-async functions.
165
165
nexus_service_handlers: Instances of Nexus service handler classes
166
166
decorated with :py:func:`@nexusrpc.handler.service_handler`.
167
+
168
+ .. warning::
169
+ This parameter is experimental and unstable.
167
170
workflows: Workflow classes decorated with
168
171
:py:func:`@workflow.defn<temporalio.workflow.defn>`.
169
172
activity_executor: Concurrent executor to use for non-async
@@ -187,6 +190,9 @@ def __init__(
187
190
Nexus operations. This is required if any operation start methods
188
191
are non-`async def`. :py:class:`concurrent.futures.ThreadPoolExecutor`
189
192
is recommended.
193
+
194
+ .. warning::
195
+ This parameter is experimental and unstable.
190
196
workflow_runner: Runner for workflows.
191
197
unsandboxed_workflow_runner: Runner for workflows that opt-out of
192
198
sandboxing.
Original file line number Diff line number Diff line change @@ -4386,7 +4386,11 @@ async def execute_child_workflow(
4386
4386
4387
4387
4388
4388
class NexusOperationHandle (Generic [OutputT ]):
4389
- """Handle for interacting with a Nexus operation."""
4389
+ """Handle for interacting with a Nexus operation.
4390
+
4391
+ .. warning::
4392
+ This API is experimental and unstable.
4393
+ """
4390
4394
4391
4395
def cancel (self ) -> bool :
4392
4396
"""Request cancellation of the operation."""
@@ -5116,6 +5120,9 @@ def _to_proto(self) -> temporalio.bridge.proto.common.VersioningIntent.ValueType
5116
5120
class NexusClient (ABC , Generic [ServiceT ]):
5117
5121
"""A client for invoking Nexus operations.
5118
5122
5123
+ .. warning::
5124
+ This API is experimental and unstable.
5125
+
5119
5126
Example::
5120
5127
5121
5128
nexus_client = workflow.create_nexus_client(
@@ -5420,6 +5427,9 @@ def create_nexus_client(
5420
5427
) -> NexusClient [ServiceT ]:
5421
5428
"""Create a Nexus client.
5422
5429
5430
+ .. warning::
5431
+ This API is experimental and unstable.
5432
+
5423
5433
Args:
5424
5434
service: The Nexus service.
5425
5435
endpoint: The Nexus endpoint.
You can’t perform that action at this time.
0 commit comments