Skip to content

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

  1. built its own, no named pattern12 of 1675%
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>
10 runs
  1. 1Hand-rolled queue or cronNo tool20%2

8 of 10 built its own runs match no named pattern, counted below only.

Built its own, any form100%10

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
next.js gets resend, python gets raw smtp. 11 of 18 next.js runs used resend, 17 of 18 python runs used raw smtp

get told when the jobs pick moves

weekly at most. free.

read issue 2archive

Prompts and what each one got 3
  1. 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
  2. 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
  3. 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

loading 36 runs

every jobs tool we check for

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