Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Node.js Background Jobs and Queues (BullMQ)

    by Saizul Amin

    1

    This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice.

    $6

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Node.js Background Jobs and Queues (BullMQ)

    Node.js Background Jobs and Queues (BullMQ)

    Example session with this skill installed

    Run the Node.js Background Jobs and Queues skill on my project and give me a prioritised list of what to fix, with exact changes.

    • Read your context and instructions
    • Compiled the node js background

    Here is what the Node.js Background Jobs and Queues (BullMQ) skill produced.

    Demo: real, unedited output of the skill's bundled script on a sample input from its test suite.

    Output

    bullmq check: 1 file(s) scanned
      MEDIUM bullmq.worker_redis_retries  -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/nodejs-backend-skills/tests/fixtures/background-jobs/fragile/src/queue.js:4
             ioredis connection used by a Worker without maxRetriesPerRequest: null
             fix: new IORedis(process.env.REDIS_URL, { maxRetriesPerRequest: null }) - BullMQ workers require it
      MEDIUM bullmq.no_connection         -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/nodejs-backend-skills/tests/fixtures/background-jobs/fragile/src/queue.js:5
             new Queue() without connection: defaults to localhost:6379
             fix: pass { connection } built from REDIS_URL (one shared ioredis instance for Queues, its own for each Worker)
      MEDIUM bullmq.no_close              -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/nodejs-backend-skills/tests/fixtures/background-jobs/fragile/src/queue.js:17
             Worker is never closed: on deploy, active jobs are cut off and stall
             fix: on SIGTERM: await worker.close() (waits for active jobs), then close queues and Redis
      MEDIUM bullmq.no_error_listener     -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/nodejs-backend-skills/tests/fixtures/background-jobs/fragile/src/queue.js:17
             Worker without an 'error' listener
             fix: worker.on('error', (err) => logger.error({ err }, 'worker error'))
      LOW    bullmq.no_retention          -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/nodejs-backend-skills/tests/fixtures/background-jobs/fragile/src/queue.js:5
             no removeOnComplete/removeOnFail: finished jobs stay in Redis forever
             fix: defaultJobOptions: { removeOnComplete: { age: 86400, count: 1000 }, removeOnFail: { age: 7 * 86400 } }
      LOW    bullmq.large_payload         -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/nodejs-backend-skills/tests/fixtures/background-jobs/fragile/src/queue.js:9
             request body or file contents stored in job data
             fix: store ids/references; load fresh data in the worker (smaller Redis, no stale data, no PII in Redis)
      LOW    bullmq.no_attempts           -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/nodejs-backend-skills/tests/fixtures/background-jobs/fragile/src/queue.js:9
             job added without attempts: a failure is final
             fix: attempts: 5, backoff: { type: 'exponential', delay: 1000 } (here or in defaultJobOptions)
      LOW    bullmq.no_attempts           -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/nodejs-backend-skills/tests/fixtures/background-jobs/fragile/src/queue.js:10
             job added without attempts: a failure is final
             fix: attempts: 5, backoff: { type: 'exponential', delay: 1000 } (here or in defaultJobOptions)
      LOW    bullmq.attempts_no_backoff   -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/nodejs-backend-skills/tests/fixtures/background-jobs/fragile/src/queue.js:11
             attempts without backoff: retries fire immediately
             fix: backoff: { type: 'exponential', delay: 1000 } (add jitter for thundering herds)
      LOW    bullmq.no_failed_listener    -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/nodejs-backend-skills/tests/fixtures/background-jobs/fragile/src/queue.js:17
             failed jobs are not logged or alerted
             fix: worker.on('failed', (job, err) => logger.error({ err, jobId: job?.id }, 'job failed')) and alert on final failure
      INFO   bullmq.queue_scheduler       -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/nodejs-backend-skills/tests/fixtures/background-jobs/fragile/src/queue.js:6
             QueueScheduler is not needed since BullMQ 2.0
             fix: remove it; delayed jobs and stalled checks run inside workers
      INFO   bullmq.no_job_id             -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/nodejs-backend-skills/tests/fixtures/background-jobs/fragile/src/queue.js:9
             job added without jobId/deduplication
             fix: use a deterministic jobId (e.g. `order-${orderId}-email`) so retr
    

    What you do next

    1. Fix the highest-severity items first.
    2. Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
    3. Keep the skill installed and re-run it whenever the project changes.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Background jobs for Node.js backends with BullMQ (and pointers to pg-boss/Graphile Worker) - what to move out of the request, queue and worker setup, retries with exponential backoff and UnrecoverableError, idempotency (deterministic jobId, provider idempotency keys, processed table, upserts), transactional outbox, dead-letter inspection and replay, rate limits and concurrency, job schedulers instead of setInterval/cron in web processes, graceful worker shutdown and Redis settings. Includes a checker for missing connections, Worker ioredis without maxRetriesPerRequest null, missing error/failed listeners, workers never closed, jobs without attempts/backoff/retention, whole request bodies in job data, missing jobIds and obsolete QueueScheduler/repeat usage, plus a jobs.ts template.

    Who it's for

    Use when the user adds a queue, emails/webhooks/exports run in requests, jobs run twice or get lost, Redis memory grows, or asks about BullMQ, retries or idempotency.

    What's inside

    • Tested, offline Python script(s): check_bullmq.py (deterministic results, standard library only unless noted)
    • Reference guides: patterns.md
    • Step-by-step agent instructions in SKILL.md covering: When to use; When not to use; Workflow

    Why it's worth it

    Generic prompts guess. This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice. See the real demo below.

    Works with every major AI agent

    Built on the open SKILL.md standard: Claude Code, Codex CLI, Cursor, VS Code Copilot, Gemini CLI, Windsurf and 20+ other agents.

    Requirements

    • Python 3.8+ for the bundled scripts
    • No API keys, no account, runs locally

    Open source: saizul/nodejs-backend-skills on GitHub (MIT licence, by Saizul Amin).

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Frequently Asked Questions

    Background jobs for Node.js backends with BullMQ (and pointers to pg-boss/Graphile Worker) - what to move out of the request, queue and worker setup, retries with exponential backoff and UnrecoverableError, idempotency (deterministic jobId, provider idempotency keys, processed table, upserts), tr...

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use Node.js Background Jobs and Queues (BullMQ) on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.