@bitsinfra/fusee
    Preparing search index...

    Interface StepOptions

    interface StepOptions {
        fairnessKey?: string;
        fairnessWeight?: number;
        heartbeatTimeout?: Duration;
        limit?: string;
        priority?: number;
        readOnly?: boolean;
        retry?: RetryPolicy;
        timeout?: Duration;
    }
    Index
    fairnessKey?: string

    Steps waiting at one priority take turns by this key (a tenant ID, say), so a key with a deep backlog cannot starve the others. Default: the shared group of steps without a key.

    fairnessWeight?: number

    Permits the fairness key takes per turn (default 1).

    heartbeatTimeout?: Duration

    An attempt fails (and may be retried) if this long passes without ctx.heartbeat.

    limit?: string

    Take a permit of this limit (see engine.limit) before each attempt.

    priority?: number

    While waiting for the limit's permit, steps with a higher priority go first (an integer, default 0). Not journaled.

    readOnly?: boolean

    The step only reads: its function changes nothing outside the process, so it runs without waiting for the records before it to be durable. A crash can make it run again with different inputs, which is harmless for a read and wrong for anything else. Later steps and outputs still wait for its result. Ignored by awaitCompletion.

    retry?: RetryPolicy
    timeout?: Duration

    Each attempt fails (and may be retried) after this long.