Interface QueueSchedulerOptions

Options for customizing the behaviour of the scheduler.

interface QueueSchedulerOptions {
    autorun?: boolean;
    blockingConnection?: boolean;
    connection?: ConnectionOptions;
    maxStalledCount?: number;
    prefix?: string;
    sharedConnection?: boolean;
    stalledInterval?: number;
}

Hierarchy (view full)

Properties

autorun?: boolean

Condition to start scheduler at instance creation.

blockingConnection?: boolean

Denotes commands should retry indefinitely.

connection?: ConnectionOptions

Options for connecting to a Redis instance.

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.

prefix?: string

Prefix for all queue keys.

sharedConnection?: boolean

Specify if the connection is shared.

stalledInterval?: number

Number of milliseconds between stallness checks.

Generated using TypeDoc