Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
evantahler committed Feb 22, 2016
1 parent a48a497 commit 29b2c21
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,15 @@ multiWorker.on('multiWorkerAction', function(verb, delay){ con
multiWorker.start();
```
The Options available for the multiWorker are:
- `connection`: The redis configuration options (same as worker)
- `queues`: Array of ordred queue names (or `*`) (same as worker)
- `minTaskProcessors`: The minimum number of workers to spawn under this multiWorker, even if there is no work to do. You need at least one, or no work will ever be processed or checked
- `maxTaskProcessors`: The maximum number of workers to spawn under this multiWorker, even if the queues are long and there is available CPU (the event loop isn't entierly blocked) to this node process.
checkTimeout: How often to check if the event loop is blocked (in ms) (for adding or removing multiWorker children),
maxEventLoopDelay: How long the event loop has to be delayed before considering it blocked (in ms),
toDisconnectProcessors: If false, all multiWorker children will share a single redis connection. If false, each child will connect and disconnect seperatly. This will lead to more redis connections, but faster retrival of events.
## Presentation
This package was featured heavily in [this presentation I gave](http://blog.evantahler.com/blog/background-tasks-for-node.html) about background jobs + node.js. It contains more examples!
Expand Down

0 comments on commit 29b2c21

Please sign in to comment.