API Reference

Bull

Robust Redis-backed job queue for Node.js with priorities, retries, scheduling, and rate limiting.

Official Documentation ↗
CompatibilityThis documentation covers version v4.16. Check the official docs for the latest API surface.

Installation

npmnpm install bull
pnpmpnpm add bull
yarnyarn add bull

Methods

Bull is a Node.js queue package that uses Redis for reliable, distributed job processing. It supports priorities, concurrency, retries with backoff, delayed and recurring jobs, and rate limiting.

Key Features

  • Reliable: Redis-backed persistence and retries
  • Priorities & concurrency: Control job ordering and parallelism
  • Scheduling: Delayed jobs and cron-like repeats
  • Rate limiting: Throttle job throughput
  • Events: Rich lifecycle hooks for monitoring

Errors

The following points are quoted verbatim from the official documentation. 来源:https://cdn.jsdelivr.net/gh/OptimalBits/bull@latest/README.md · 取证方式:HTTP GET 官方 README/文档页(HTML 去标签) · 抓取时间:2026-11-07T13:48:35.460Z. Any error type, throw condition or recovery step not stated there is left unspecified; this page does not infer exception classes or return values.

FAQ

How does Bull handle retries and backoff?
Set attempts and backoff in job options. Bull retries failed jobs with fixed or exponential backoff, and supports fallback strategies. Failed jobs move to a failed set you can retry or remove.
What is the difference between Bull and BullMQ?
BullMQ is the next-generation successor with a cleaner API, better TypeScript types, and flows. Bull is stable and widely used; new projects should prefer BullMQ unless tied to Bull.
How do I schedule delayed or recurring jobs?
Pass delay in milliseconds for a one-off delayed job, or use queue.add with a repeat option like { every: '1 hour' } or cron expressions for recurring jobs.