Interface WorkerProOptions

Hierarchy

  • WorkerOptions
    • WorkerProOptions

Properties

Properties

batch?: {
    size?: number;
}

Type declaration

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

Type declaration

  • Optional concurrency?: number

    Maximum number of simultaneous jobs that the workers can handle within a specific group. For instance, setting this value to 1 ensures that no more than one job from the same group is processed at any given time. If this limit is not defined, there will be no restriction on the number of concurrent jobs.

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

Generated using TypeDoc