# GoodJob

> Multithreaded, Postgres-based, Active Job backend for Ruby on Rails

Source: https://talira.ai/catalog/goodjob-1jjxahdr
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool, Web app
- Categories: [devops / background jobs](https://talira.ai/categories/devops/background-jobs), [languages / ruby](https://talira.ai/categories/languages/ruby)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: yes[^2]
- API: yes[^2]
- Creator: Ben Sheldon

GoodJob is an Active Job backend for Rails that stores jobs in the app's own Postgres database, using session-level advisory locks for run-once safety and LISTEN/NOTIFY to cut queueing latency. It runs multithreaded on Concurrent::Ruby, either inside an existing web process or as a separate `good_job start` CLI process. It includes cron-like recurring jobs, batches, concurrency and throttling controls, bulk enqueue and a web dashboard mounted as a Rails engine. Inspired by Delayed::Job and Que, it targets apps that enqueue a million jobs a day and more.

## Links

- GitHub: https://github.com/bensheldon/good_job
- Docs: https://rubydoc.info/gems/good_job

## Problems it solves

- background jobs in Rails without running Redis
- use the Postgres database we already have as the queue for Active Job
- jobs that are enqueued in the same database transaction as the record they process
- run background jobs inside the web server process so I don't pay for a separate worker dyno
- retry failed jobs with backoff and see them in a dashboard
- cron-style recurring jobs in Rails without a crontab on the server
- only let one job per customer run at a time to avoid race conditions
- throttle jobs that call a rate-limited third-party API to 100 per hour
- run a callback once a whole group of jobs has finished
- jobs should start within milliseconds of being enqueued without hammering the database with polling
- a job queue that still works behind PgBouncer in transaction mode
- keep finished and discarded jobs around for a couple of weeks so I can see what ran
- move off Delayed Job to something multithreaded but still database-backed

## Features

- Active Job queues, delays, priorities, timeouts and retries
- Postgres advisory locks for run-once safety
- LISTEN/NOTIFY for low latency
- run async in the web process or as a separate CLI process
- cron-style recurring jobs
- batches with callbacks
- concurrency limits and enqueue/perform throttles
- bulk enqueue
- web dashboard (Rails engine) with live polling
- pausing jobs
- SELECT FOR UPDATE SKIP LOCKED mode for PgBouncer transaction mode
- CLI HTTP health check probes
- preserved job records with cleanup

## Capabilities

- Has an API: plan not known
- Has a command line tool: plan not known

## Trust

Overall: 0.70 out of 1.
Signals: maintenance 1.00, adoption 0.70, momentum 0.48, community 0.91, backing 0.20, extensibility 0.40.

- last commit 9 days ago
- 97 commits in the last 90 days
- latest release v4.24.1 21 days ago
- 3.0k GitHub stars
- 188 contributors
- accepts sponsorship (Github)
- created by Ben Sheldon

## Alternatives

- [River](https://talira.ai/catalog/river-2vkec0fw.md): Fast and reliable background jobs
- [Solid Queue](https://talira.ai/catalog/solid-queue-p6cvvefm.md): Database-backed Active Job backend
- [Resque](https://talira.ai/catalog/resque-xc7nkpaj.md): A Redis-backed Ruby library for creating background jobs, placing them on multiple queues, and processing them later
- [Sidekiq](https://talira.ai/catalog/sidekiq-yt9yy9ky.md): Simple, efficient background processing for Ruby
- [Hatchet](https://talira.ai/catalog/hatchet-vsyhbfkz.md): An orchestration engine for background tasks, AI agents, and durable workflows
- [Faktory](https://talira.ai/catalog/faktory-2w26dhpb.md): Language-agnostic background job server

## Sources

[^1]: https://github.com/bensheldon/good_job/blob/main/LICENSE.txt (checked 17 Nov 2026)
[^2]: https://github.com/bensheldon/good_job (checked 17 Nov 2026)
