Type Aliases
BackoffFunction
BackoffFunction: ((attemptsMade?, err?, job?) => number)
Type declaration
- (attemptsMade?, err?, job?): number
Parameters
Optional
attemptsMade: numberOptional
err: ErrorOptional
job: Job
Returns number
FinishedPropValAttribute
FinishedPropValAttribute: "returnvalue" | "failedReason"
FinishedStatus
FinishedStatus: "completed" | "failed"
FlowQueuesOpts
FlowQueuesOpts: Record<string, Omit<QueueOptions, "connection" | "prefix">> JobJsonSandbox
JobJsonSandbox: JobJson & { prefix: string; queueName: string; } Type declaration
prefix: string
queueName: string
JobState
JobState: FinishedStatus | "active" | "delayed" | "waiting" | "waiting-children" JobType
JobType: JobState | "paused" | "repeat" | "wait" JobsOptions
Type declaration
Optional
failParentOnFailure?: boolean
KeysMap
KeysMap: {
[index in string]: string
}
MinimalQueue
MinimalQueue: Pick<QueueBase, "name" | "client" | "toKey" | "keys" | "opts" | "closing" | "waitUntilReady" | "removeListener" | "emit" | "on" | "redisVersion"> ParentOpts
ParentOpts: {
parentDependenciesKey?: string;
parentKey?: string;
waitChildrenKey?: string;
}
Type declaration
Optional
parentDependenciesKey?: string
Optional
parentKey?: string
Optional
waitChildrenKey?: string
Processor
Processor<T, R, N>: ((job,
token?) => Promise<R>) Type Parameters
- T = any
- R = any
- N extends string = string
Type declaration
- (job, token?): Promise<R>
Parameters
- job: Job<T, R, N>
Optional
token: string
Returns Promise<R>
RedisClient
RedisClient: Redis | Cluster
RepeatStrategy
RepeatStrategy: ((millis, opts, name?) => number)
Type declaration
- (millis, opts, name?): number
Returns number
SandboxedJobProcessor
SandboxedJobProcessor<T, R>: ((job) => R | PromiseLike<R>) | ((job,
callback) => void) Type declaration
- (job): R | PromiseLike<R>
Returns R | PromiseLike<R>
Type declaration
- (job, callback): void
Parameters
- job: SandboxedJob<T, R>
- callback: ((error, result) => void)
- (error, result): void
Returns void
Returns void
StreamName
StreamName: string
If true, moves parent to failed.