Understanding Why Jobs Fail
Failure is a bit vague, but in the context of Sidekiq jobs, it means any condition during which the execution of the job stops before completion. It might stop due to an exception, a bug, or a gopher chewing through the power cable at your data center.
Technically speaking, Sidekiq considers a job to have failed if it raises an exception that’s not caught inside perform. In that case, Sidekiq will automatically retry the job over the course of 20 days using an increasingly exponential delay between each retry. If, after that time, the job is still failing, Sidekiq considers it dead and will stop retrying it (this can be configured per job but isn’t recommended).
There are two categories of failures, and you’ll ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access