bullmq - v5.56.2
    Preparing search index...

    Class Repeat

    QueueBase

    Base class for all classes that need to interact with queues. This class is normally not used directly, but extended by the other classes.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    closing: Promise<void>
    keys: KeysMap
    name: string

    The name of the queue.

    opts: QueueBaseOptions = {}

    Options for the queue.

    toKey: (type: string) => string

    Accessors

    • get redisVersion(): string

      Returns the version of the Redis instance the client is connected to,

      Returns string

    Methods

    • Type Parameters

      • T = any
      • R = any
      • N extends string = string

      Parameters

      Returns Promise<Job<T, R, N>>

    • Returns Promise<void>

      Closes the connection and returns a promise that resolves when the connection is closed.

    • Emits an event. Normally used by subclasses to emit events.

      Parameters

      • event: string | symbol

        The emitted event.

      • ...args: any[]

      Returns boolean

    • Parameters

      • start: number = 0
      • end: number = -1
      • asc: boolean = false

      Returns Promise<
          {
              cron: string;
              endDate: number;
              id: string;
              key: string;
              name: string;
              next: number;
              pattern: string;
              tz: string;
          }[],
      >

    • Parameters

      • repeatJobKey: string

      Returns Promise<number>