By incrementing ._consecutive_failed_jobs for this error, the worker will erroneously pause popping jobs. As this error does not indicate poor conditions on the worker (and is in fact a race-condition API-side to do with the database) it is incorrect to consider this error a form of fault/failed job.
By incrementing
._consecutive_failed_jobs
for this error, the worker will erroneously pause popping jobs. As this error does not indicate poor conditions on the worker (and is in fact a race-condition API-side to do with the database) it is incorrect to consider this error a form of fault/failed job.