Undocumented
| Function | activity |
Convert an Activity link into a nexusrpc link. |
| Function | nexus |
Convert a Nexus Activity link into a Temporal Activity link. |
| Function | nexus |
Convert a nexus link into a Temporal NexusOperation link |
| Function | nexus |
Convert a nexusrpc link into a Temporal API Link. |
| Function | nexus |
Convert a nexus link into a Temporal WorkflowEvent link |
| Function | nexus |
Convert a nexus link into a Temporal Workflow link. |
| Function | nexus |
Convert a NexusOperation link into a nexusrpc link |
| Function | temporal |
Convert a Temporal API Link into a nexusrpc link. |
| Function | workflow |
Convert a WorkflowEvent link into a nexusrpc link |
| Function | workflow |
Create a WorkflowEvent link corresponding to a started workflow |
| Function | workflow |
Convert a Workflow link into a nexusrpc link. |
| Constant | EVENT |
Undocumented |
| Constant | LINK |
Undocumented |
| Constant | LINK |
Undocumented |
| Constant | LINK |
Undocumented |
| Constant | LINK |
Undocumented |
| Constant | LINK |
Undocumented |
| Constant | REQUEST |
Undocumented |
| Variable | logger |
Undocumented |
| Class | _ |
The URL path shape for one link type. |
| Class | _ |
Undocumented |
| Class | _ |
Undocumented |
| Function | _build |
Build the URL for a link of the given type. |
| Function | _event |
Undocumented |
| Function | _event |
Convert a CONSTANT_CASE string to PascalCase. |
| Function | _event |
Convert a PascalCase string to CONSTANT_CASE. |
| Function | _event |
Render an event type as the short PascalCase name used on the wire. |
| Function | _optional |
Undocumented |
| Function | _parse |
Return the parts of a link URL, or None if the URL is not a link of this type. |
| Function | _query |
Return an EventReference from the query params or raise ValueError. |
| Function | _query |
Return the event type named in the query params, or raise ValueError. |
| Function | _query |
Return an EventReference from the query params or raise ValueError. |
| Function | _request |
Undocumented |
| Function | _temporal |
Undocumented |
| Constant | _LINK |
Undocumented |
| Constant | _URL |
Undocumented |
temporalio.api.common.v1.Link.Activity) -> nexusrpc.Link:
(source)
¶
Convert an Activity link into a nexusrpc link.
nexusrpc.Link) -> temporalio.api.common.v1.Link | None:
(source)
¶
Convert a Nexus Activity link into a Temporal Activity link.
nexusrpc.Link) -> temporalio.api.common.v1.Link | None:
(source)
¶
Convert a nexus link into a Temporal NexusOperation link
This is used when propagating links from a Nexus start operation request to a StartNexusOperation request.
nexusrpc.Link) -> temporalio.api.common.v1.Link | None:
(source)
¶
Convert a nexusrpc link into a Temporal API Link.
Returns None when the Nexus link type is invalid or unknown.
nexusrpc.Link) -> temporalio.api.common.v1.Link | None:
(source)
¶
Convert a nexus link into a Temporal WorkflowEvent link
This is used when propagating links from a Nexus start operation request to a StartWorklow request.
nexusrpc.Link) -> temporalio.api.common.v1.Link | None:
(source)
¶
Convert a nexus link into a Temporal Workflow link.
temporalio.api.common.v1.Link.NexusOperation) -> nexusrpc.Link:
(source)
¶
Convert a NexusOperation link into a nexusrpc link
Used when propagating links from a StartNexusOperation response to a Nexus start operation response.
temporalio.api.common.v1.Link) -> nexusrpc.Link | None:
(source)
¶
Convert a Temporal API Link into a nexusrpc link.
Returns None when the Temporal link variant is missing.
temporalio.api.common.v1.Link.WorkflowEvent) -> nexusrpc.Link:
(source)
¶
Convert a WorkflowEvent link into a nexusrpc link
Used when propagating links from a StartWorkflow response to a Nexus start operation response.
temporalio.client.WorkflowHandle[ Any, Any], request_id: str) -> temporalio.api.common.v1.Link.WorkflowEvent:
(source)
¶
Create a WorkflowEvent link corresponding to a started workflow
temporalio.api.common.v1.Link.Workflow) -> nexusrpc.Link:
(source)
¶
Convert a Workflow link into a nexusrpc link.
_LinkType, namespace: str, id_value: str, run_id: str, *, query_params: str | None = '') -> str:
(source)
¶
Build the URL for a link of the given type.
temporalio.api.common.v1.Link.WorkflowEvent.EventReference) -> str:
(source)
¶
Undocumented
Convert a CONSTANT_CASE string to PascalCase.
>>> _event_type_constant_case_to_pascal_case("NEXUS_OPERATION_SCHEDULED") "NexusOperationScheduled"
Convert a PascalCase string to CONSTANT_CASE.
>>> _event_type_pascal_case_to_constant_case("NexusOperationScheduled") "NEXUS_OPERATION_SCHEDULED"
temporalio.api.enums.v1.EventType.ValueType) -> str:
(source)
¶
Render an event type as the short PascalCase name used on the wire.
dict[ str, list[ str]], param_name: str) -> str:
(source)
¶
Undocumented
Return the parts of a link URL, or None if the URL is not a link of this type.
The path is matched exactly, so the workflow and workflow-event shapes -- which differ only by the trailing /history -- cannot be mistaken for one another.
dict[ str, list[ str]]) -> temporalio.api.common.v1.Link.WorkflowEvent.EventReference:
(source)
¶
Return an EventReference from the query params or raise ValueError.
dict[ str, list[ str]]) -> temporalio.api.enums.v1.EventType.ValueType:
(source)
¶
Return the event type named in the query params, or raise ValueError.
Both the prefixed proto name and the short PascalCase name are accepted, since either may arrive on the wire.
dict[ str, list[ str]]) -> temporalio.api.common.v1.Link.WorkflowEvent.RequestIdReference:
(source)
¶
Return an EventReference from the query params or raise ValueError.
temporalio.api.common.v1.Link.WorkflowEvent.RequestIdReference) -> str:
(source)
¶
Undocumented