Skip to content

Commit

Permalink
Added clusterQueued()
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Grondin committed Feb 3, 2019
1 parent 964ea50 commit ad94e3e
Show file tree
Hide file tree
Showing 16 changed files with 353 additions and 298 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,16 @@ console.log(count);

`priority` is optional. Returns the number of `QUEUED` jobs with the given `priority` level. Omitting the `priority` argument returns the total number of queued jobs **in the limiter**.

#### clusterQueued()

```js
const count = await limiter.clusterQueued();

console.log(count);
```

Returns the number of `QUEUED` jobs **in the Cluster**.

#### empty()

```js
Expand Down
Loading

0 comments on commit ad94e3e

Please sign in to comment.