drupflare/worker - v1.0.0
    Preparing search index...

    Interface UpdbBeat

    One beat's result. ok and beat are the only invariants -- everything else depends on which branch ran, so the rest are optional rather than a union of thirteen literals. That is the accurate contract: a caller has to check before reading, and declaring them optional is what makes the check possible instead of forcing a cast.

    interface UpdbBeat {
        aborted?: string[];
        appended?: number;
        attempts?: number;
        beat: string;
        cold?: boolean;
        coldWaits?: number;
        detail?: string | null;
        finished?: number;
        fn?: string | null;
        kind?: string;
        meters?: { rows: number; statements: number };
        more?: boolean;
        ok: boolean;
        partial?: boolean;
        passes?: number;
        phase?: string;
        plan?: UpdbUnitResult | null;
        ran?: boolean;
        reason?: string | null;
        reclaimed?: boolean;
        result?: UpdbUnitResult | null;
        runId?: string;
        seq?: number;
    }
    Index
    aborted?: string[]

    abort keys this unit added

    appended?: number

    how many units the plan appended

    attempts?: number
    beat: string

    which beat ran: claim, verify, apply, flush and so on

    cold?: boolean

    refused because the interpreter was not warm

    coldWaits?: number
    detail?: string | null
    finished?: number

    1 when the unit completed, from the row's own column

    fn?: string | null

    the update function under way

    kind?: string

    the unit's kind

    meters?: { rows: number; statements: number }

    the rows and statements this beat cost

    more?: boolean

    whether the run owes another beat

    ok: boolean
    partial?: boolean

    the unit did some but not all of its work

    passes?: number

    how many times this unit has been attempted

    phase?: string

    the run's phase after this beat

    plan?: UpdbUnitResult | null

    the plan fragment's JSON, on the two halts that carry it

    ran?: boolean

    whether PHP was actually entered

    reason?: string | null

    why it halted or skipped

    reclaimed?: boolean

    whether a claim was re-issued after an unverifiable one

    result?: UpdbUnitResult | null

    the unit's own reply

    runId?: string
    seq?: number

    the unit's sequence number