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

    Type Alias ProvisionOutcome

    the result of one bounded provisioning step

    type ProvisionOutcome = {
        copied?: number;
        cursor?: ProvisionCursor;
        done: boolean;
        ok: boolean;
        reason: string;
        stage?: string;
        torn?: boolean;
    }
    Index
    copied?: number

    absent when done, so a caller cannot resume a finished copy by accident

    done: boolean

    whether the whole copy has landed; a lane reaches VERIFIED on the chunk that sets this

    ok: boolean
    reason: string
    stage?: string
    torn?: boolean

    the primary committed mid-copy; restart rather than resume