docs: add getWorkers documentation fixes #1665

This commit is contained in:
Manuel Astudillo
2021-07-16 13:56:57 +02:00
parent 3fe17d869f
commit 57d8679cdd
+12
View File
@@ -32,6 +32,7 @@
- [Queue#getDelayed](#queuegetdelayed)
- [Queue#getCompleted](#queuegetcompleted)
- [Queue#getFailed](#queuegetfailed)
- [Queue#getWorkers](#queuegetworkers)
- [Job](#job)
@@ -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