Skip to content

isFinalAttempt

isFinalAttempt(job, error): boolean

Whether the failure error caused is final for job: the running attempt is the last one BullMQ will make (attemptsMade counts finished attempts, so the running one is attemptsMade + 1, the same arithmetic BullMQ uses), or the error is an UnrecoverableError. A queue pause is never final: it uses no attempt.

Pick<Job, "attemptsMade" | "opts">

unknown

boolean