No more lost jobs.
Spool 2.0 holds every failed job until you replay it, retries on the schedule you set, and runs on your laptop without Redis.
Upgrade from 1.x
$ bun add spool@2What changed
1.x and 2.0, side by side.
Released on 6 December 2026. Seven things work differently, and none of them need a rewrite.
| Feature | Spool 1.x | Spool 2.0 |
|---|---|---|
| Failed jobs | Dropped after the last attempt | Held until you replay or discard them |
| Retries | Three attempts, one fixed delay | A policy per job, with backoff |
| Schedules | Cron, in UTC only | Cron in any time zone, and one-off delays |
| Concurrency | One limit shared by every queue | A limit per queue |
| Payloads | Untyped JSON | Typed, and checked when you enqueue |
| Local runs | Needs Redis running | One command, with nothing else to start |
| Run history | The last 100 log lines | Every attempt of every run, on a timeline |
- No breaking changes
- Jobs written for 1.x run as they are
- Queued jobs stay queued
Pricing
2.0 costs what 1.x did.
Every plan gets all of 2.0. You pay for runs, and for how long run history is kept.
Hobby
For a side project, or for trying 2.0 on one app.
$0$0
free · no card neededfree · no card needed
Start free- Every 2.0 feature
- 10,000 runs a month
- One queue
- Run history for 7 days
Team
For a product with paying users, where a lost job becomes a support ticket.
$24$20
per month · billed monthlyper month · billed yearly
Choose Team- Everything in Hobby
- 2 million runs a month
- Unlimited queues
- Run history for 30 days
- Email support
Scale
For many services that share one set of queues.
$120$100
per month · billed monthlyper month · billed yearly
Choose Scale- Everything in Team
- 20 million runs a month
- Run history for 90 days
- Single sign-on
- Priority support
ExampleSpool is made up. The prices are in USD and only show how the plans read.
Code
One job, in one file.
The payload type, the retry policy and what happens after the last attempt sit next to the code that runs.
import { defineJob, queue } from "spool";
import { renderReceipt, sendMail } from "./mail";
type Receipt = { orderId: string; email: string };
export const receipts = queue("receipts", { concurrency: 5 });
export const sendReceipt = defineJob<Receipt>({
queue: receipts,
retry: { attempts: 5, backoff: "exponential" },
onExhausted: "hold",
async run({ orderId, email }) {
const receipt = await renderReceipt(orderId);
await sendMail(email, receipt);
},
});import { sendReceipt } from "./job";
export async function completeOrder(order: { id: string; email: string }) {
await sendReceipt.enqueue({ orderId: order.id, email: order.email }, { delay: "2m" });
}bun add spool@2
bunx spool devQuestions
Questions about 2.0.
Upgrading, billing, and what happens to the jobs already in your queues.
01Do I have to change my 1.x jobs?
No. A job written for 1.x runs as it is. Payload types, retry policies and per-queue limits are opt-in, one job at a time.
02What happens to jobs that are queued when I upgrade?
They stay queued and run under 2.0. The upgrade doesn't drain or reset a queue.
03How long is a failed job held?
For as long as your plan keeps run history: 7, 30 or 90 days. You can replay or discard it at any point before then.
04What counts as a run?
One attempt at one job. A job that succeeds on its third attempt is three runs.
05Does 2.0 cost more than 1.x?
No. The plans and their prices are the same, and every plan gets every 2.0 feature.
06Is Spool a real product?
No. I made it up for this page, to show a product update built from the pieces in the kit. The plans and prices are examples.
