MCPcopy
hub / github.com/OptimalBits/bull / QueueOptions

Interface QueueOptions

index.d.ts:62–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 }
61
62 interface QueueOptions {
63 /**
64 * Options passed into the `ioredis` constructor's `options` parameter.
65 * `connectionName` is overwritten with `Queue.clientName()`. other properties are copied
66 */
67 redis?: Redis.RedisOptions | string | undefined;
68
69 /**
70 * When specified, the `Queue` will use this function to create new `ioredis` client connections.
71 * This is useful if you want to re-use connections or connect to a Redis cluster.
72 */
73 createClient?(
74 type: 'client' | 'subscriber' | 'bclient',
75 redisOpts?: Redis.RedisOptions
76 ): Redis.Redis | Redis.Cluster;
77
78 /**
79 * Prefix to use for all redis keys
80 */
81 prefix?: string | undefined;
82
83 settings?: AdvancedSettings | undefined;
84
85 limiter?: RateLimiter | undefined;
86
87 defaultJobOptions?: JobOptions | undefined;
88
89 metrics?: MetricsOpts; // Configure metrics
90 }
91
92 interface MetricsOpts {
93 maxDataPoints?: number; // Max number of data points to collect, granularity is fixed at one minute.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…