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
| Option | Stable reference | Cost and operational limit |
|---|---|---|
| GoodJob | 4.22.0, MIT per its repository | No licence fee; you operate Postgres and workers. Preserved job records are cleaned after 14 days by default; tune retention for your recovery window. |
| Sidekiq | 8.1.7 changelog, OSS LGPL | OSS 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
| Option | What it is for / wins | Loses when | Honest pick |
|---|---|---|---|
| GoodJob | Rails Active Job backed by existing Postgres; fewer infrastructure services | Queue load competes with database capacity; the team expects Sidekiq's automatic retries without configuring Active Job | Pick this if your team can own explicit retries and Postgres capacity. |
| Sidekiq | Redis-backed Ruby jobs with automatic retry scheduling and Dead recovery | You want to avoid operating Redis or need paid reliability features without a subscription | Pick 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
- “it re-schedules the job about 3 hours later” — thisIsLoading, 2024-05-20, GoodJob #1353. This concerns throttling retries; it shows why retry timing must be observed, not assumed.
- “The retry strategy just goes back to the default retry strategy” — arafatkatze, 2019-09-22, Sidekiq #4281. Historical integration report, not evidence that the same bug affects current Sidekiq.
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
ApplicationJobretry 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