Anchorage API reference
    Preparing search index...

    Interface PurgeExpiredRunsOptions

    interface PurgeExpiredRunsOptions {
        advanceCursor: (next: RunRetentionCursor) => Promise<void>;
        artifactStore?: RunArtifactPurger;
        cursor?: RunRetentionCursor;
        limit?: number;
        now?: () => number;
        resourceOwnerTable?: string;
        startIdempotencyTable?: string;
        startIdempotencyTtlMs?: number;
        tablePrefix?: string;
        ttlMs: number;
    }
    Index

    Properties

    advanceCursor: (next: RunRetentionCursor) => Promise<void>
    artifactStore?: RunArtifactPurger

    Artifact deletion precedes the guarded snapshot transaction.

    limit?: number

    Physical rows scanned per phase, capped at 90.

    now?: () => number
    resourceOwnerTable?: string

    Resource ownership registry. A terminal snapshot whose run's run claim is still reserved stays for a later pass, and a committed claim is removed with its run. A registry whose table does not exist holds no claim, and each pass then logs one retention-config line.

    startIdempotencyTable?: string
    startIdempotencyTtlMs?: number

    Defaults to ttlMs and cannot shorten the snapshot retention horizon.

    tablePrefix?: string
    ttlMs: number

    Terminal snapshot retention measured from updatedAt.