pynenc.workflow.identity¶
Module Contents¶
Classes¶
Immutable identity of a workflow execution. |
API¶
- class pynenc.workflow.identity.WorkflowIdentity[source]¶
Immutable identity of a workflow execution.
Workflows provide a structured execution context for tasks, enabling complex orchestration and dependency management. Each workflow has a unique identity captured by this class.
- Parameters:
workflow_task_id – The identifier of the task that defines this workflow
workflow_invocation_id – The unique identifier for this specific workflow execution
parent_workflow – The parent workflow if this is a subworkflow
- parent_workflow: Optional[pynenc.workflow.identity.WorkflowIdentity]¶
None
- classmethod from_invocation(invocation: pynenc.invocation.base_invocation.InvocationIdentity) pynenc.workflow.identity.WorkflowIdentity[source]¶
Create a new workflow identity based on the invocation.
- Parameters:
invocation – The invocation that defines this workflow
parent_workflow – Optional parent workflow if this is a subworkflow
- Returns:
A new workflow identity
- classmethod from_json(json_str: str) pynenc.workflow.identity.WorkflowIdentity[source]¶
Create a WorkflowIdentity from a JSON string.