Interface JobCall

    Argument passed to a JS worker handler. The payload is whatever JSON was enqueued; the other fields are the JobContext flattened so handlers can destructure { payload, id, kind, attempt, maxAttempts }.

    interface JobCall {
        attempt: number;
        id: number;
        kind: string;
        maxAttempts: number;
        maxStalledCount: number;
        payload: any;
        stalledCount: number;
    }
    Index

    Properties

    attempt: number
    id: number
    kind: string
    maxAttempts: number
    maxStalledCount: number
    payload: any
    stalledCount: number

    Number of times this row has been rescued from a stalled (worker-lost) state. > 0 means a prior worker died mid-handler. Distinct from attempt, which counts completed handler invocations. Handlers can branch on this to resume from a checkpoint instead of replaying.