Monitoring for Failed Jobs That Stop Retrying
Suppose our payments service deprecated the API call being used, and it now always returns an HTTP 503. That might not be how you’d handle API deprecation, but you can’t control the payment processors of the world. In this case, what you’ve been treating as a transient error is now a permanent one. Luckily, you know how to handle permanent errors: monitor them. Unluckily, you just spent the last section disabling notifications about this particular error.
Sidekiq provides a solution called the dead set. The dead set is a set of jobs that have been retried too many times and have been set aside, never to be retried again. The default setting for max_retries results in a job being moved to the dead ...
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