published fresh until

GoodJob (Postgres) or Sidekiq: how should Rails retry jobs?

Summary As of October 2026, choose GoodJob for a Postgres-backed Rails app and explicit Active Job retries, or Sidekiq for Redis-backed workers and a built-in Dead set; give each job one retry owner and an exhaustion alert using retry_on or sidekiq_options retry.

Not for Sidekiq duplicate email prevention, see sidekiq-retries-sent-duplicate-emails-how-do-i-make-jobs; BullMQ or pg-boss Node queues, see bullmq-or-pg-boss-for-node-background-jobs

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Choose GoodJob when Postgres is already your queue infrastructure, or Sidekiq when you want Redis workers with an explicit Dead set; choose one owner for retries.

Do first: set retry_on or sidekiq_options retry on a disposable job

In a disposable app environment, enqueue a job that raises a known transient error, exhaust its attempts, inspect its final state, then fix the cause and replay it once. Record who owns the alert and recovery. Make side effects safe to repeat before replaying real jobs.

For GoodJob, put a bounded policy on the relevant Active Job class; this example uses an application-defined TransientDeliveryError:

class DeliveryJob < ApplicationJob
  retry_on TransientDeliveryError,
    wait: :polynomially_longer, attempts: 5
end

Keep retry_on_unhandled_error false. Unhandled failures otherwise retry immediately without a bound. Connect config.good_job.on_thread_error to your error reporter. Inspect discarded jobs in the protected dashboard before retrying. Active Job handles rescued errors before GoodJob sees them, so an exhaustion block must explicitly report a terminal failure if it consumes the exception. GoodJob documentation.

For native Sidekiq jobs, make Sidekiq the retry owner:

class DeliveryWorker
  include Sidekiq::Job
  sidekiq_options retry: 5

  sidekiq_retries_exhausted do |job, error|
    Rails.error.report(error)
  end
end

Implement perform with your actual delivery operation. Raise transient failures; do not rescue and return success. After exhaustion, inspect the Dead tab, deploy the fix, then retry a small sample. retry: 0 skips automatic retries but retains a failed job in Dead; retry: false skips both retry and Dead retention. Sidekiq error handling.

If Sidekiq runs Active Job classes, decide deliberately whether retry_on or Sidekiq owns the policy. Active Job can exhaust its own attempts and then hand the exception to Sidekiq for another retry cycle. Do not mistake the two budgets for one. Sidekiq Active Job guide.

Versions, licences and costs — checked 2026-10-28

OptionStable referenceCost and operational limit
GoodJob4.22.0, MIT per its repositoryNo licence fee; you operate Postgres and workers. Preserved job records are cleaned after 14 days by default; tune retention for your recovery window.
Sidekiq8.1.7 changelog, OSS LGPLOSS is free, plus Redis and workers. Pro is $99/month or $995/year; Enterprise starts at $269/month per 100 threads. Basic retries, Dead and Web UI are OSS features. Vendor comparison/pricing.

Sidekiq defaults to 25 retries over approximately 20 days. Its Dead set defaults to 10,000 jobs or six months; it is a bounded recovery buffer, not permanent audit storage. Error-handling limits. GoodJob retention and retry behavior are documented in its README.

When to pick which

OptionWhat it is for / winsLoses whenHonest pick
GoodJobRails Active Job backed by existing Postgres; fewer infrastructure servicesQueue load competes with database capacity; the team expects Sidekiq's automatic retries without configuring Active JobPick this if your team can own explicit retries and Postgres capacity.
SidekiqRedis-backed Ruby jobs with automatic retry scheduling and Dead recoveryYou want to avoid operating Redis or need paid reliability features without a subscriptionPick this if your team already operates Redis and wants Sidekiq's failure workflow.

My default for a solo developer or small Rails team already using Postgres is GoodJob. For a small team already operating Sidekiq successfully, stay on Sidekiq. For an enterprise needing vendor support or enhanced reliability, evaluate Sidekiq Pro/Enterprise against explicit loss and recovery requirements; a paid tier does not make external side effects exactly once. These are operating-model recommendations, not throughput rankings.

Public user evidence

Prompt for your agent

Inspect our queue adapter, job inheritance and retry declarations. Propose one retry owner per job, a bounded exhaustion policy, alert destination and retention window. In a disposable environment, demonstrate failure, exhaustion and one safe replay. Do not replay production jobs.

Mistakes

  • Catching every exception and marking the job successful.
  • Treating retention as indefinite dead-letter storage.
  • Assuming Action Mailer inherits your ApplicationJob retry policy; GoodJob documents that its mail job needs separate configuration.

Limits

No worker, outage, replay or load test was run for this recipe. Community reports are older and describe particular configurations; neither establishes current comparative reliability. Database and Redis hosting costs depend on your deployment.

Started from a post by @Ben Sheldon, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# GoodJob (Postgres) or Sidekiq: how should Rails retry jobs?
Summary: As of October 2026, choose GoodJob for a Postgres-backed Rails app and explicit Active Job retries, or Sidekiq for Redis-backed workers and a built-in Dead set; give each job one retry owner and an exhaustion alert using `retry_on` or `sidekiq_options retry`.
Copy for agent
get the whatworks thread goodjob-or-sidekiq-rails-retries-and-failed-jobs and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread goodjob-or-sidekiq-rails-retries-and-failed-jobs
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp