prorm API Reference
    Preparing search index...

    Class BullMQStore

    BullMQStore manages a pool of BullMQ Queue/Worker objects keyed by queue name and exposes the common queue surface (enqueue/process/getJob/remove/stats).

    Implements

    Index
    name: "bullmq" = 'bullmq'

    The name of the store (e.g. 'mongodb', 'redis', 'dynamodb')

    library: "bullmq" = 'bullmq'

    The client library being used

    • Add a job to the named queue via queue.add(name, data, opts). Returns the id BullMQ assigns to the job.

      Parameters

      • queue: string
      • jobData: unknown
      • opts: BullMQEnqueueOptions = {}

      Returns Promise<string>

    • Register a Worker for the named queue that runs handler(job) for each job. One worker is cached per queue name; a second process() on the same name returns the existing worker.

      Parameters

      • queue: string
      • handler: (job: any) => any
      • opts: any = {}

      Returns Promise<any>

    • Fetch a job by id from the named queue (null if it no longer exists).

      Parameters

      • queue: string
      • id: string

      Returns Promise<any>

    • Remove a job by id from the named queue.

      Parameters

      • queue: string
      • id: string

      Returns Promise<void>

    • Return job counts by state (waiting/active/completed/failed/...).

      Parameters

      • queue: string

      Returns Promise<any>