Skip to content

Commit

Permalink
docs: add getWorkers documentation fixes #1665
Browse files Browse the repository at this point in the history
  • Loading branch information
manast committed Jul 16, 2021
1 parent 3fe17d8 commit 57d8679
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
- [Queue#getDelayed](#queuegetdelayed)
- [Queue#getCompleted](#queuegetcompleted)
- [Queue#getFailed](#queuegetfailed)
- [Queue#getWorkers](#queuegetworkers)

- [Job](#job)

Expand Down Expand Up @@ -682,6 +683,17 @@ Returns a promise that will return an array with the failed jobs between start a

---

### Queue#getWorkers

```ts
getWorkers() : Promise<Array<Object>>
```

Returns a promise that will return an array workers currently listening or processing jobs.
The object includes the same fields as [Redis CLIENT LIST](https://redis.io/commands/client-list) command.

---

### Queue#clean

```ts
Expand Down

0 comments on commit 57d8679

Please sign in to comment.