mirror of
https://github.com/OptimalBits/bull.git
synced 2026-07-02 08:27:43 +08:00
docs: add getWorkers documentation fixes #1665
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user