interface WorkerProOptions {
    batch?: {
        size?: number;
    };
    group?: {
        concurrency?: number;
        limit?: {
            duration: number;
            max: number;
        };
    };
    ttl?: number | JobTtlMap;
}

Hierarchy

  • WorkerOptions
    • WorkerProOptions

Properties

Properties

batch?: {
    size?: number;
}

Type declaration

group?: {
    concurrency?: number;
    limit?: {
        duration: number;
        max: number;
    };
}

Type declaration

  • Optional concurrency?: number

    Amount of jobs that a single worker is allowed to work on in parallel for a given group.

  • Optional limit?: {
        duration: number;
        max: number;
    }
    • duration: number
    • max: number
ttl?: number | JobTtlMap