Interface WorkerProOptions

Hierarchy

  • WorkerOptions
    • WorkerProOptions

Properties

autorun?: boolean

Condition to start processor at instance creation.

blockingConnection?: boolean

Denotes commands should retry indefinitely.

concurrency?: number

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

connection?: ConnectionOptions

Options for connecting to a Redis instance.

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

Type declaration

  • Optional concurrency?: number

    Maximum number of jobs to process in parallel for a given worker.

  • Optional limit?: {
        duration: number;
        max: number;
    }
    • duration: number
    • max: number
limiter?: RateLimiterOptions

Enable rate limiter

lockDuration?: number
lockRenewTime?: number
maxStalledCount?: number

Amount of times a job can be recovered from a stalled state to the wait state. If this is exceeded, the job is moved to failed.

metrics?: MetricsOptions

Enable collect metrics.

prefix?: string

Prefix for all queue keys.

runRetryDelay?: number
settings?: AdvancedOptions
sharedConnection?: boolean

Specify if the connection is shared.

skipDelayCheck?: boolean
stalledInterval?: number

Number of milliseconds between stallness checks.

ttl?: number | JobTtlMap

Generated using TypeDoc