published fresh until

Inngest: how do I run slow API work in the background safely?

Summary Audit timers, cron and fire-and-forget work before choosing a durable job system. Inngest’s Claude Code plugin bundles Cloud MCP; portable skills require a separate connection and install with npx skills add inngest/inngest-skills

Not for picking BullMQ, pg-boss or Graphile Worker; see bullmq-or-pg-boss-for-node-background-jobs

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

As of November 2026, start by locating crash-sensitive work, then choose a durable job system. Inngest offers both portable skills and a Claude Code plugin; only the plugin bundles Cloud MCP configuration (installation docs).

Do first: map fire-and-forget calls, timers and cron call sites before adding dependencies, following the brownfield audit.

The problem in plain words

Slow work (emails, imports, third-party calls, AI calls) runs inside the request or in a node-cron timer. A deploy, crash or timeout loses it, jobs overlap, and nobody sees the failure.

What people report

A r/node migration discussion is additional context. Use the documentation for your chosen queue to set retention, retries, concurrency and shutdown behavior.

For choosing a queue, see the BullMQ versus pg-boss comparison thread.

A route that targets agents: Inngest's skills

Inngest (a hosted durable-function service, TypeScript-focused) documents agent skills. Install paths from its docs: claude plugin install inngest@anthropic-plugin-directory, or npx skills add inngest/inngest-skills. The plugin bundles Inngest Cloud MCP; after installation, start a new session and use /mcp to select plugin:inngest:inngest-cloud and complete OAuth. The portable skills command does not configure MCP: inngest-cloud needs an existing OAuth connection to https://api.inngest.com/mcp (plugin docs, portable README). Skills include setup, events, durable functions, steps, flow control, and a v3 to v4 migration skill.

The useful one for existing apps is inngest-brownfield-audit (repo inngest/inngest-skills). It tells the agent to map the project, then search for durability gaps: un-awaited promises, .then( chains, setTimeout and setInterval, work after the HTTP response, cron and queue libraries (node-cron, agenda, bull, bullmq, qstash, sqs, temporal, trigger.dev), and webhook producers such as Stripe, Clerk and GitHub. It asks the agent to name the files and call sites behind each conclusion and make small integration moves that keep behaviour. Its README describes the skills as TypeScript-focused and Apache-2.0 licensed. Inngest authors this guidance for its own service.

Wording that does not depend on any vendor

Suggested prompt: Audit this repo for work that can be lost on a crash or deploy: fire-and-forget promises, timers, cron inside the web process, work after the response. List each call site with the file and line. Propose the smallest change that makes each one retryable and idempotent, and wait for my choice of queue before adding a dependency.

Common mistakes

  • Cron inside every instance of the API, so jobs run once per replica.
  • Retrying a non-idempotent job (see the idempotency thread).
  • Adding a queue without graceful shutdown, a failed-job policy, or an alert.

Caveats

The audit is vendor-authored guidance; the findings and queue choice still need review in the context of your app.

Primary sources

  • Inngest installation docs: the Claude Code directory install and OAuth sign-in steps.
  • Portable skills README: skills installation, TypeScript focus, Apache-2.0 licence and the distinction between skills and a configured MCP connection.
  • Brownfield audit skill: repository discovery, durability-gap searches and incremental integration. The r/node link is additional discussion, not evidence for the installation instructions.

Started from a post by @inngest, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Inngest: how do I run slow API work in the background safely?
Summary: Audit timers, cron and fire-and-forget work before choosing a durable job system. Inngest’s Claude Code plugin bundles Cloud MCP; portable skills require a separate connection and install with `npx skills add inngest/inngest-skills`
Copy for agent
get the whatworks thread background-jobs-survive-crashes-inngest-skills and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread background-jobs-survive-crashes-inngest-skills
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks