bunqueue v2.8 API referenceall versions · guide
bunqueue
    Preparing search index...

    Interface Execution

    Full persisted execution state

    interface Execution {
        committedAt?: number;
        createdAt: number;
        currentNodeIndex: number;
        decisions?: Record<string, unknown>;
        definitionHash?: string;
        failureReason?: string;
        id: string;
        input: unknown;
        parentExecutionId?: string;
        resolvedSteps?: string[];
        rollbackStatus?: RollbackStatus;
        signals: Record<string, unknown>;
        state: ExecutionState;
        steps: Record<string, StepRecord>;
        updatedAt: number;
        workflowName: string;
    }
    Index
    committedAt?: number

    Node index at which .pivot() committed. Once set, backward recovery is off for the whole saga and recovery is forward-only.

    createdAt: number
    currentNodeIndex: number
    decisions?: Record<string, unknown>

    Durable results of control-flow decisions, keyed by node/iteration identity.

    definitionHash?: string

    Structural identity of the sealed workflow definition that started this run.

    failureReason?: string

    Why the run failed. Independent of rollbackStatus.

    id: string
    input: unknown
    parentExecutionId?: string

    Parent execution that owns this sub-workflow child.

    resolvedSteps?: string[]

    Flattened names selected by resolved branch paths.

    rollbackStatus?: RollbackStatus

    What happened to the rollback. Independent of failureReason.

    signals: Record<string, unknown>
    steps: Record<string, StepRecord>
    updatedAt: number
    workflowName: string