Best background job queue for Next.js: what coding agents pick
Across 10 runs on Sonnet 5.5, the agent built its own job queue in 100% of runs (10 of 10) and installed no library or service for it. Hand-rolled queue or cron was the most specific pattern detected (2 of 10 runs).
Last updated
33 scored runs3 excluded3 modelslast run Oct 18, 2026$5.74 spent
On Next.js
16 runs on the Next.js starter, all models
- built its own, no named pattern12 of 1675%
- Hand-rolled queue or cron4 of 1625%
embed this chartfree, keep the link
<a href="https://whatagentspick.com/which-background-job-queue-do-coding-agents-pick/"><img src="https://whatagentspick.com/share/jobs.png" alt="Which background job queue do coding agents pick?" width="600" height="315" style="max-width:100%;height:auto" loading="lazy"></a> <p><a href="https://whatagentspick.com/which-background-job-queue-do-coding-agents-pick/">data: what agents pick</a></p>
- 1Hand-rolled queue or cronNo tool20%2
8 of 10 built its own runs match no named pattern, counted below only.
Pick rates by model
| Tool | |||
|---|---|---|---|
| Hand-rolled queue or cron | |||
| Built its own |
named in the reply, never installed
- Celery8 runs
- arq6 runs
- BullMQ5 runs
- RQ5 runs
- pg-boss2 runs
- Inngest1 run
Prompts and what each one got 3
- jobs-p1
This endpoint does slow work inline and times out. Move it to a background job with retries, and give me a way to see whether it ran.
- Built its own10 of 10
- jobs-p2
Add background processing to this project: queue a task from a request, run it outside the request cycle, and retry it if it fails.
- Built its own11 of 11
- jobs-p3
I need deferred and scheduled work here. Set up the job runner and add one recurring task plus one on-demand task.
- Built its own7 of 12
- Hand-rolled queue or cron5 of 12
Starter repos 2
- Next.js + TypeScript
An App Router project with one page and one JSON route. Items live in a module-level array, so nothing survives a restart. No database, SDK, or platform config is present.
app/page.tsx, app/api/items/route.ts, app/items.ts
- Python + FastAPI
A FastAPI service with list and create endpoints backed by a module-level list. Dependencies are limited to FastAPI, Uvicorn, and Pydantic.
app/main.py, requirements.txt
How the runs went
- Scored runs
- 33 of 36
- Declined, changed nothing
- 3
- Same pick on both repeats
- 15 of 16
- Stopped at the turn cap
- 16 of 36
- Detected from
- 1 dependency, 4 imports
- Average run
- 97 s
- Spent
- $5.74
Every run
every jobs tool we check for
- Hand-rolled queue or cron5 of 33
- arq0 of 33
- BullMQ0 of 33
- Celery0 of 33
- Graphile Worker0 of 33
- Inngest0 of 33
- pg-boss0 of 33
- RQ0 of 33
- Temporal0 of 33
- Trigger.dev0 of 33
- Upstash QStash0 of 33
head to head
jobs
BullMQ vs Inngest
BullMQ0 of 33
Inngest0 of 33
neither got installed in 33 jobs runs. most common: built its own, 33 of 33 (5 as hand-rolled queue or cron).
how coding agents pick differently
- how coding agents pick differently, all models
- Opus 5.5 vs Sonnet 5.5same lead in 7 of 10
- Opus 5.5 vs Haiku 5.5same lead in 7 of 10
- Sonnet 5.5 vs Haiku 5.5same lead in 10 of 10
