# bunqueue v2.6.31

SandboxedWorker autoStart option.

Canonical: https://bunqueue.dev/blog/bunqueue-v2-6-31/

---

<!-- Generated from changelog.md by docs/scripts/generate-release-posts.ts. Edit the changelog and regenerate. -->

SandboxedWorker autoStart option.

#### To install bunqueue v2.6.31

```bash title="bun"
bun add bunqueue@2.6.31
```

```bash title="npm"
npm install bunqueue@2.6.31
```

#### To upgrade bunqueue

```bash
bun add bunqueue@latest
```

## SandboxedWorker `autoStart` option

Automatically restart the worker pool when new jobs arrive after idle shutdown. Set `autoStart: true` with `idleTimeout` to get workers that sleep when idle and wake up when needed. Configurable poll interval via `autoStartPollMs` (default: 5000ms). Closes #51.

---

[← bunqueue v2.6.30](https://bunqueue.dev/blog/bunqueue-v2-6-30/) · [Full changelog](https://bunqueue.dev/changelog/) · [All posts](https://bunqueue.dev/blog/)
