@drupflare/workforce - v0.3.0
    Preparing search index...

    Interface BudgetOptions

    interface BudgetOptions {
        assumedQuota?: number;
        assumedWindowSeconds?: number;
        concurrency?: number;
        now?: () => number;
        reserve?: number;
        sleep?: (ms: number) => Promise<void>;
    }
    Index
    assumedQuota?: number

    the assumed allowance before any response has reported one

    assumedWindowSeconds?: number

    the assumed window before any response has reported one

    concurrency?: number

    how many requests may be in flight at once

    now?: () => number

    injectable so tests do not wait in real time

    reserve?: number

    Stop spending once this fraction of the window's allowance remains.

    A judgement rather than a measurement: it leaves room for a human on the dashboard while a fleet job runs. Set it to 0 to spend the whole allowance.

    sleep?: (ms: number) => Promise<void>