pynenc.workflow.workflow_identity¶
Module Contents¶
Classes¶
Immutable identity of a workflow execution. |
API¶
- class pynenc.workflow.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_id – The unique identifier for the workflow (derived from the defining invocation)
workflow_type – The type of the workflow (derived from the defining task)
parent_workflow_id – The unique identifier for the parent workflow, if any
- workflow_id: pynenc.identifiers.invocation_id.InvocationId¶
None
- workflow_type: pynenc.identifiers.task_id.TaskId¶
None
- classmethod new_workflow(invocation_id: pynenc.identifiers.invocation_id.InvocationId, task_id: pynenc.identifiers.task_id.TaskId) pynenc.workflow.workflow_identity.WorkflowIdentity[source]¶
- classmethod new_subworkflow(invocation_id: pynenc.identifiers.invocation_id.InvocationId, task_id: pynenc.identifiers.task_id.TaskId, parent_workflow_id: pynenc.identifiers.invocation_id.InvocationId) pynenc.workflow.workflow_identity.WorkflowIdentity[source]¶