package documentation
Temporal Nexus support
Warning
Nexus APIs are experimental and unstable.
See https://github.com/temporalio/sdk-python/tree/main#nexus
| Module | _decorators |
Undocumented |
| Module | _link |
No module docstring; 0/1 variable, 0/7 constant, 7/9 functions documented |
| Module | _operation |
No module docstring; 0/3 variable, 0/1 type variable, 0/4 function, 2/3 classes documented |
| Module | _operation |
No module docstring; 1/1 function, 1/1 class documented |
| Module | _token |
Undocumented |
| Module | _util |
No module docstring; 0/1 type variable, 5/6 functions documented |
From __init__.py:
| Class | |
Information about the running Nexus operation. |
| Class | |
Logger adapter that adds Nexus operation context information. |
| Class | |
Nexus callback to attach to events such as workflow completion. |
| Class | |
A handle to a workflow that is backing a Nexus operation. |
| Class | |
Context received by a workflow run operation. |
| Function | client |
Get the Temporal client used by the worker handling the current Nexus operation. |
| Function | in |
Whether the current code is inside a Nexus operation. |
| Function | info |
Get the current Nexus operation information. |
| Function | is |
Whether shutdown has been invoked on the worker. |
| Function | metric |
Get the metric meter for the current Nexus operation. |
| Async Function | wait |
Asynchronously wait for shutdown to be called on the worker. |
| Function | wait |
Synchronously block while waiting for shutdown to be called on the worker. |
| Function | workflow |
Decorator marking a method as the start method for a workflow-backed operation. |
| Variable | logger |
Logger that emits additional data describing the current Nexus operation. |
Whether shutdown has been invoked on the worker.
| Returns | |
bool | True if shutdown has been called on the worker, False otherwise. |
| Raises | |
RuntimeError | When not in a Nexus operation. |
Asynchronously wait for shutdown to be called on the worker.
| Raises | |
RuntimeError | When not in a Nexus operation. |
Synchronously block while waiting for shutdown to be called on the worker.
This is essentially a wrapper around threading.Event.wait.
| Parameters | |
timeout:timedelta | float | None | Max amount of time to wait for shutdown to be called on the worker. |
| Raises | |
RuntimeError | When not in a Nexus operation. |
@overload
def workflow_run_operation(start:
Callable[ [ ServiceHandlerT, WorkflowRunOperationContext, InputT], Awaitable[ WorkflowHandle[ OutputT]]]) -> Callable[ [ ServiceHandlerT, WorkflowRunOperationContext, InputT], Awaitable[ WorkflowHandle[ OutputT]]]:@overload
def workflow_run_operation(*, name:
str | None = None) -> Callable[ [ Callable[ [ ServiceHandlerT, WorkflowRunOperationContext, InputT], Awaitable[ WorkflowHandle[ OutputT]]]], Callable[ [ ServiceHandlerT, WorkflowRunOperationContext, InputT], Awaitable[ WorkflowHandle[ OutputT]]]]:Decorator marking a method as the start method for a workflow-backed operation.