class documentation

class NexusSerializationContext(SerializationContext): (source)

View In Hierarchy

Serialization context for Nexus operation payloads.

Callers receive this context when encoding inputs and decoding results or failures. The context is not propagated to a handler that completes an asynchronous operation. Handlers receive it when decoding inputs, encoding synchronous results, and encoding failures produced while handling a Nexus task.

A standalone operation handle retains the context used to start the operation and uses it to decode the result, including when the start request returns an existing operation. A handle created with temporalio.client.Client.get_nexus_operation_handle has no endpoint, service, or operation information and therefore decodes without Nexus context.

A failure encoded by a handler is later decoded by a caller. Because some operation paths may lack this context, contextual encodings must be self-describing and decoders must continue to accept payloads encoded without context.

Warning

This API is experimental and unstable.

Class Variable endpoint Nexus endpoint name.
Class Variable operation Nexus operation name.
Class Variable service Nexus service name.
endpoint: str = (source)

Nexus endpoint name.

operation: str = (source)

Nexus operation name.

Nexus service name.