Anchorage API reference
    Preparing search index...

    Interface PurgeExpiredThreadsOptions

    interface PurgeExpiredThreadsOptions {
        limit?: number;
        now?: () => number;
        tablePrefix?: string;
        ttlMs: number;
    }
    Index

    Properties

    limit?: number

    Threads processed per call. Default 100 — the shrinking eligible set is the cursor, so a first backlog drains across firings instead of blowing one invocation's budget (same batching rationale as purgeExpiredWorkflowRuns).

    now?: () => number

    Clock override for tests.

    tablePrefix?: string

    Must match createD1Storage's tablePrefix.

    ttlMs: number

    Threads untouched for longer than this are eligible, with their messages.