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.
Parameters
Section titled “Parameters”Pick<Job, "attemptsMade" | "opts">
unknown
Returns
Section titled “Returns”boolean