pynenc.workflow.workflow_identity

Module Contents

Classes

WorkflowIdentity

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

parent_workflow_id: InvocationId | None

None

property is_subworkflow: bool

Check if this workflow is a subworkflow.

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]