Part of Hosting by frameworkHosting · Background jobs

Background jobs without Redis: Solid Queue, GoodJob, pg-boss and Graphile Worker.

Canner runs no Redis, so the job queue lives in Postgres and the workers run inside your web server or in a separate Worker project. Rails has Solid Queue and GoodJob; Node has pg-boss and Graphile Worker. Size the connection pool for both, keep jobs short enough to survive a deploy, and know that a sleeping app runs no jobs.

Facts checked

Why Postgres instead of Redis

The classic setup is a Redis-backed queue (Sidekiq, BullMQ, Celery) plus a worker process next to the web server. That’s two more things to run. A Postgres-backed queue keeps jobs in the database you already have: one backup, one set of credentials, and you can enqueue a job in the same transaction as the row it’s about, so a rolled-back signup never sends a welcome email.

The cost is throughput. Postgres queues claim jobs with FOR UPDATE SKIP LOCKED or advisory locks, which is plenty for emails, webhooks, PDF exports and syncs, and not what you’d pick for tens of thousands of jobs a second.

Canner doesn’t run Redis. If your app depends on it, the build log says so before the app starts, for example: Redis: it uses a Redis-backed job queue (Sidekiq or Resque). Canner does not run Redis. Rails 8 has Solid Cache, Solid Queue and Solid Cable on Postgres instead; otherwise set REDIS_URL to a Redis you run elsewhere. The same check flags Celery, RQ and Dramatiq in Python projects.

The four Postgres queues, side by side

LibraryStackHow workers find new jobsIn the web processRecurring jobs
Solid Queue †Rails (Active Job). Default in Rails 8Polling with FOR UPDATE SKIP LOCKED (workers every 0.1 s by default)Puma plugin, forked processes by default or threads with solid_queue_mode :asyncconfig/recurring.yml, zone from config.time_zone
GoodJob †Rails (Active Job)LISTEN/NOTIFY, plus a poll every 10 s as a fallbackexecution_mode = :async: threads in the Rails serverenable_cron; one enqueue per interval even with several processes
pg-boss † † †Node.js 22.12+ or Bun, PostgreSQL 13+Polling with SKIP LOCKED (2 s by default), LISTEN/NOTIFY with useListenNotifyYes: boss.work() in your serverschedule(), UTC unless you pass tz
Graphile Worker † †Node.jsLISTEN/NOTIFY and SKIP LOCKED; typically under 3 ms to startYes: “embedded mode”, run() in your serverCrontab in UTC; ?fill= backfills missed runs
Sidekiq, BullMQ † †Ruby, Node.jsRedisNot on Canner: needs RedisNot on Canner

† Competitor details come from each vendor’s own published pages on the dates shown; prices and plans change, so check the vendor before you decide. Solid Queue (2026-10-29) · GoodJob (2026-10-29) · pg-boss (2026-10-29) · pg-boss (2026-10-29) · pg-boss (2026-10-29) · Graphile Worker (2026-10-29) · Graphile Worker (2026-10-29) · Sidekiq, BullMQ (2026-10-29) · Sidekiq, BullMQ (2026-10-29)

Rails: Solid Queue or GoodJob

Solid Queue needs nothing from you on Canner when the app is as Rails 8 generated it. Canner creates the cache, queue and cable databases your config/database.yml declares for production, sets QUEUE_DATABASE_URL and the others, sets SOLID_QUEUE_IN_PUMA=true when config/puma.rb uses it, and runs bundle exec rails db:prepare if you have no release command. Anything you set yourself wins, and those extra databases don’t count toward your database limit.

By default the Puma plugin forks the Solid Queue supervisor and its workers as extra processes. They live inside your project and share its memory. If memory is tight, solid_queue_mode :async runs them as threads of Puma instead.

GoodJob is the other choice, and the one our background jobs docs walk through: config.good_job.execution_mode = :async, the install migration in your release command, and a pool sized for web threads, job threads and 3 more. GoodJob relies on session-level advisory locks and LISTEN/NOTIFY, which don’t work through a transaction-mode pooler. Canner’s DATABASE_URL gives each connection its own session, so they do. In our tests on Canner, 200 jobs enqueued at once each ran exactly once.

# config/puma.rb — what Rails 8 generates. Canner sets SOLID_QUEUE_IN_PUMA=true
# for you when this line is present, creates the queue database from
# config/database.yml and sets QUEUE_DATABASE_URL.
plugin :solid_queue if ENV["SOLID_QUEUE_IN_PUMA"]

# Optional: run workers as threads of the Puma process instead of forked
# processes. Less memory, less isolation.
solid_queue_mode :async

Node: pg-boss or Graphile Worker in your server

Both run in the same Node process as your HTTP server: start the worker before listen(). pg-boss creates its own tables on start(). The routes enqueue and return, and the worker picks the job up a moment later.

Watch the connection count. Each database on Canner accepts up to 20 connections at once. node-postgres pools default to 10, and so does pg-boss’s max: an app and a pg-boss instance at their defaults already use all 20, with nothing left for the release command or for you. Set both explicitly, as below. If you use Prisma, its pool counts too (connection pool timeouts, too many connections).

// server.js — Express and pg-boss in one process
import express from "express";
import pg from "pg";
import { PgBoss } from "pg-boss";

// Budget: 20 connections per database. 8 for the app + 4 for pg-boss
// leaves room for the release command and a psql session.
const pool = new pg.Pool({ connectionString: process.env.DATABASE_URL, max: 8 });
const boss = new PgBoss({ connectionString: process.env.DATABASE_URL, max: 4 });
boss.on("error", console.error);

await boss.start();
await boss.createQueue("emails");
await boss.work("emails", async ([job]) => {
  await sendEmail(job.data); // your code
});

const app = express();
app.use(express.json());
app.post("/signup", async (req, res) => {
  const user = await createUser(pool, req.body); // your code
  await boss.send("emails", { to: user.email, template: "welcome" });
  res.status(201).json(user); // the visitor doesn't wait for the email
});
app.listen(process.env.PORT || 3000);

// Graphile Worker is the same idea:
//   import { run } from "graphile-worker";
//   await run({ connectionString: process.env.DATABASE_URL, concurrency: 2,
//               taskList: { send_email: async (payload) => sendEmail(payload) } });

Deploys, crashes and sleep

  • Deploys. A deploy stops the old process and starts the new one. The old version gets 30 seconds to finish, then it’s stopped. Jobs are rows in Postgres, so a job cut off mid-run is picked up again by the new version (GoodJob and Solid Queue through Active Job; pg-boss when the job expires, or sooner with heartbeatSeconds). Keep jobs short, or make them safe to run twice.
  • Crashes. If the process dies, Canner starts it again after a few seconds, and the queue resumes from the database.
  • Sleep. On Starter, a project with no visitors for 3 hours sleeps, and its workers stop with it. Recurring jobs defined in the app (recurring.yml, GoodJob cron, pg-boss schedule()) don’t fire while it sleeps. A Canner scheduled job that calls the app wakes it. On Live, two projects stay always on.
  • Memory and CPU. Jobs share the project’s memory and processor time with the web server. Watch the memory line on the project overview after the first real jobs.

When this isn’t the right setup

A project runs one process, so a second process beside the web server in the same project isn’t supported. If your jobs are heavy (video transcoding, large imports that need gigabytes of memory, model inference), running them in the web process will slow requests: deploy the job runner as a separate project of type Worker, with its own process, memory and environment variables (worker projects). On Starter it sleeps like any project; on Live, make it one of your two always-on projects. An app that needs Sidekiq or BullMQ throughput needs Redis, which you’d run elsewhere and point REDIS_URL at.

For everything else, the queue is just more tables in your managed Postgres. More guides are in hosting by framework.

Questions

Can I use Sidekiq or BullMQ on Canner?

Only with a Redis you run elsewhere, set as REDIS_URL. Canner doesn’t run Redis. Solid Queue or GoodJob (Rails) and pg-boss or Graphile Worker (Node) keep the queue in Postgres instead.

Do I need a separate worker process?

No. Solid Queue’s Puma plugin, GoodJob’s async mode, pg-boss and Graphile Worker all run inside the web server process. For heavy or long jobs, you can deploy the job runner as a separate Worker project (background jobs).

Does GoodJob work with PgBouncer?

Not in transaction mode: it needs session-level advisory locks and LISTEN/NOTIFY. On Canner each connection from DATABASE_URL has its own session, so GoodJob works as is.

What happens to a running job during a deploy?

The old version gets 30 seconds to finish before it’s stopped. The job stays in the database and the new version runs it again, so keep jobs short or make them safe to run twice.

Jobs next to your app, in your database, no Redis.

Your web server and your job queue deploy together, and the queue is backed up with the rest of your data.