Database-backed Active Job backend
open sourceMITself-hostablefree
Solid Queue is a database-based queuing backend for Active Job, configured by default in new Rails 8 applications. It works with MySQL, PostgreSQL or SQLite and uses FOR UPDATE SKIP LOCKED where available so workers don't wait on locks when polling. A supervisor runs workers, dispatchers and a scheduler (forked processes or threads in one process) via bin/jobs or a Puma plugin, and it adds delayed jobs, concurrency controls, recurring tasks from config/recurring.yml, queue pausing, priorities, bulk enqueue and batches with callbacks. It relies on Active Job for retries and error handling; a UI comes from the separate Mission Control — Jobs gem. 37signals built it and runs it in HEY.
Problems it solves
- background jobs in Rails without running Redis
- a job queue that works on SQLite for a small Rails app on one server
- database-backed background jobs for a Rails app on MySQL
- what job backend does a new Rails 8 app use out of the box
- run jobs inside the Puma process in development without starting a separate worker
- recurring tasks in Rails defined in a YAML file instead of cron
- never run two jobs for the same record at the same time
- pause one queue in production while we fix a bug
- track a batch of jobs and run a callback when they all succeed or any fail
- jobs whose worker was OOM-killed should show up as failed instead of vanishing
- switch jobs one at a time from our old job backend to a new one
- check the job worker configuration in CI before a deploy boots a broken supervisor
Features
- MySQL, PostgreSQL and SQLite
- FOR UPDATE SKIP LOCKED polling
- delayed jobs
- concurrency controls (block or discard on conflict)
- recurring tasks from config/recurring.yml, also scheduled dynamically
- queue pausing
- numeric priorities and priority by queue order
- bulk enqueue (perform_all_later)
- batches with on_finish, on_success and on_failure callbacks
- fork or async supervisor mode, thread or fiber workers
View 4 more
- Puma plugin
- lifecycle hooks
- bin/jobs check config validation
- separate queue database or single database
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
Alternatives
The same job
These do what Solid Queue does.
- GoodJob Multithreaded, Postgres-based, Active Job backend for Ruby on Rails
- Resque A Redis-backed Ruby library for creating background jobs, placing them on multiple queues, and processing them later
- Sidekiq Simple, efficient background processing for Ruby
- River Fast and reliable background jobs
- Hatchet An orchestration engine for background tasks, AI agents, and durable workflows
- Faktory Language-agnostic background job server
