Member Junction
    Preparing search index...
    interface WorkQueueSweeperOptions {
        AcquireLock?: (
            source: WorkQueueExecutorSource,
            contextUser: UserInfo,
        ) => Promise<SweepLock>;
        CreateLedger?: (
            executor: WorkQueueSqlExecutor,
            contextUser: UserInfo,
        ) => Pick<DeduplicationLedger, "PurgeExpired">;
        MaxPurgeBatchesPerRun: number;
        PurgeBatchSize: number;
    }
    Index

    Properties

    AcquireLock?: (
        source: WorkQueueExecutorSource,
        contextUser: UserInfo,
    ) => Promise<SweepLock>

    Test seam. Default: plan 05's TryAcquireSweepLock — an independent executor guarded by the transaction-owned sweep lock.

    CreateLedger?: (
        executor: WorkQueueSqlExecutor,
        contextUser: UserInfo,
    ) => Pick<DeduplicationLedger, "PurgeExpired">

    Test seam. Default: a DeduplicationLedger over the lock's executor.

    MaxPurgeBatchesPerRun: number
    PurgeBatchSize: number