Stone.js API
    Preparing search index...

    In-process memory queue.

    The zero-config default: jobs live in arrays keyed by queue name, with delay, reservation, retry and a dead-letter list. Scoped to a single process (use the Redis connection to share work across instances), ideal for development, tests and single-node apps.

    Implements

    Index
    name: string

    A human-readable connection name (e.g. 'memory', 'redis').

    • Parameters

      Returns Promise<void>

    • Parameters

      • Optionalqueue: string

      Returns Promise<void>

    • Type Parameters

      • T = unknown

      Parameters

      Returns Promise<string>

    • Parameters

      • job: Job
      • _error: Error

      Returns Promise<void>

    • The dead-letter jobs (failed after exhausting attempts). Not part of the contract; useful for inspection and tests.

      Returns Job<any>[]

      The failed jobs.

    • Type Parameters

      • T = unknown

      Parameters

      • delay: number
      • name: string
      • payload: T
      • options: JobOptions = {}

      Returns Promise<string>

    • Parameters

      • job: Job
      • delay: number = 0

      Returns Promise<void>

    • Parameters

      • Optionalqueue: string

      Returns Promise<Job<any>>

    • Parameters

      • Optionalqueue: string

      Returns Promise<number>