prorm API Reference
    Preparing search index...

    Class BeeQueueStore

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

    Implements

    Index
    name: "beequeue" = 'beequeue'

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

    library: "bee-queue" = 'bee-queue'

    The client library being used

    • Build a job with queue.createJob(data), apply any retry/delay/timeout options, .save() it, and return the id Bee-Queue assigns.

      Parameters

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

      Returns Promise<string>

    • Register the worker handler for a queue via queue.process(concurrency, handler). Bee-Queue allows only one process() per Queue object, so a repeat call on the same queue name is a no-op.

      Parameters

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

      Returns Promise<any>

    • Fetch a job by id from the named queue (queue.getJob(id)).

      Parameters

      • queue: string
      • id: string

      Returns Promise<any>

    • Remove a job by id from the named queue. Uses queue.removeJob(id) when available, otherwise fetches the job and calls job.remove().

      Parameters

      • queue: string
      • id: string

      Returns Promise<void>

    • Return job counts by state for a queue. Uses queue.getJobCounts() when available, otherwise falls back to Bee-Queue's queue.checkHealth().

      Parameters

      • queue: string

      Returns Promise<any>