@archastro/sdk
    Preparing search index...

    Interface WorkflowWorkItem

    Externally executable work yielded by a durable workflow.

    interface WorkflowWorkItem {
        agent: string;
        attempt_count: number;
        command_id: string;
        created_at: string;
        execution: string;
        id: string;
        lease_expires_at?: string;
        node_id: string;
        payload: Record<string, unknown>;
        routine_run?: string;
        status: string;
        type: string;
        updated_at: string;
    }
    Index

    Properties

    agent: string

    Agent assigned to execute this work.

    attempt_count: number

    Number of times this work has been freshly claimed or reclaimed.

    command_id: string

    Opaque journal command identity used to resume the workflow exactly once.

    created_at: string
    execution: string

    Durable workflow execution that owns this work.

    id: string

    Work item ID (wdi_...).

    lease_expires_at?: string

    When the current claim expires. Null for queued or terminal work.

    node_id: string

    Workflow graph node that yielded the work.

    payload: Record<string, unknown>

    Instructions and participant bindings needed to execute the work.

    routine_run?: string

    Routine run that owns the execution, when this work came from a routine.

    status: string

    Current queue lifecycle status.

    type: string

    Stable resource discriminator. Always workflow_work_item.

    updated_at: string