# any-queue

> Technology-agnostic, persistent job queue

Latest version **0.1.0** (published 2018-07-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install any-queue
pnpm add any-queue
yarn add any-queue
bun add any-queue
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2018-07-01 |
| First published | 2018-07-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 44.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Gerardo Munguia |
| Maintainers | gmunguia |
| Keywords | job, task, queue, worker, pub, sub, persistence |

## Links

- npm: https://www.npmjs.com/package/any-queue
- Repository: https://github.com/any-queue/any-queue
- Homepage: https://github.com/any-queue/any-queue#readme
- Issues: https://github.com/any-queue/any-queue/issues
- npm.io page: https://npm.io/package/any-queue

## Dependencies (5)

- [uuid](https://npm.io/package/uuid.md) ^3.2.1
- [daggy](https://npm.io/package/daggy.md) ^1.2.0
- [debug](https://npm.io/package/debug.md) ^3.1.0
- [delay](https://npm.io/package/delay.md) ^2.0.0
- [ramda](https://npm.io/package/ramda.md) ^0.25.0

## Alternatives

- [cron](https://npm.io/package/cron.md) — 4.9M weekly downloads
- [@vercel/queue](https://npm.io/package/@vercel/queue.md) — 731.6K weekly downloads
- [create-sonicjs](https://npm.io/package/create-sonicjs.md) — 1.6K weekly downloads
- [@exellix/jobs-api](https://npm.io/package/@exellix/jobs-api.md) — 941 weekly downloads
- [@forwardimpact/libskill](https://npm.io/package/@forwardimpact/libskill.md) — 575 weekly downloads

## Recent versions

- 0.1.0 (latest) — 2018-07-01

## README

# a-queue

WIP

```js
import { Queue, Worker } from "any-queue";
import anyQueueMysql from "any-queue-mysql";

const persistenceInterface = anyQueueMysql({
  uri: "mysql://root:nt3yx7ao2e9@localhost/any-queue-demo"
});

const queue = Queue({ persistenceInterface, name: "foo" });
const worker = Worker({
  persistenceInterface,
  queueName: "foo",
  instructions: job => {
    console.log(job);
  }
});

worker.punchIn();

queue.now({ "bar": "foobar" });
// Will eventually print "[Object object]".

setTimeout(() => worker.punchOut(), 100);
```

---
_Source: https://npm.io/package/any-queue · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
