> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# queue-add-in-loop

> A job queue add runs once per item instead of one addBulk.

## What it flags

`queue.add` on a recognized job queue runs once per item, one Redis round trip each.

## How to review or fix

Collect the jobs and call `addBulk`, unless a later job needs the earlier job's result or id.

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{
  "rules": { "queue-add-in-loop": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.