Stone.js API
    Preparing search index...

    A queued job.

    interface Job<T = any> {
        attempts: number;
        availableAt: number;
        backoff: number;
        id: string;
        maxAttempts: number;
        name: string;
        payload: T;
        queue: string;
    }

    Type Parameters

    • T = any
    Index
    attempts: number

    How many times the job has been attempted.

    availableAt: number

    Epoch ms at/after which the job may be reserved.

    backoff: number

    Base backoff (seconds) between retries.

    id: string

    Unique job id.

    maxAttempts: number

    Maximum attempts before failure.

    name: string

    The job name (maps to a registered handler).

    payload: T

    The job payload.

    queue: string

    The queue the job lives on.