Handling Permanent Failures via Monitoring

If a job has failed and will never succeed, it stands to reason that the only way to fix the underlying problem is first to become aware of it. An extremely common way to do this is to configure an error catching service (or error catcher), like Honeybadger[7] or Bugsnag.[8]

An error catcher is a service that integrates with your app to receive notifications of any unhandled exception, including those from your Sidekiq jobs. The error catcher then notifies you about the exception via email or an alerting system like Pager Duty. The idea is that you don’t have to proactively check for failed jobs; instead, you allow the error catcher to notify you if a job fails. The example app you set up includes ...

Get Ruby on Rails Background Jobs with Sidekiq now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.