Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Feb 19, 2016
1 parent ab7dc24 commit 27b1732
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,26 @@ $ npm install worker-farm-cli --global

## Usage

```bash
$ worker-farm --help
```
Usage
$ worker-farm [options] <file>
Options
-n, --cores [default=numCPUs] Cores to use for spawn workers.
Launch a farm of worker from the CLI.
-w, --workers [default=1] Workers to spawn per each core.
Usage
$ worker-farm [options] <file>
-d, --delay [default=1000ms] Waiting time between spawning workers.
Options
-n, --cores [default=numCPUs] Cores to use for spawn workers.
-r, --retry [default=Infinity] Max number of call requeues after unexpected worker termination.
-w, --workers [default=1] Workers to spawn per each core.
-d, --delay [default=1000ms] Waiting time between spawning workers.
It's also possible load [options] creating a 'worker-farm.opts' file on the path of <file>.
-r, --retry [default=Infinity] Max number of call requeues after unexpected worker termination.
Examples
$ worker-farm process.js
$ worker-farm -w 1 -n 1 process.js
Examples
$ worker-farm process.js
$ worker-farm -w 1 -n 1 process.js
```

## License
Expand Down
3 changes: 3 additions & 0 deletions bin/help.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ Options

-r, --retry [default=Infinity] Max number of call requeues after unexpected worker termination.


It's also possible load [options] creating a 'worker-farm.opts' file on the path of <file>.

Examples
$ worker-farm process.js
$ worker-farm -w 1 -n 1 process.js

0 comments on commit 27b1732

Please sign in to comment.