@@ -6,7 +6,7 @@ This library supports the parallelization of Symfony Console commands.
6
6
How it works
7
7
------------
8
8
9
- When you launch a command with multi-processing enabled (` --processes 2 ` ), a
9
+ When you launch a command with multiprocessing enabled (` --processes 2 ` ), a
10
10
master process fetches * items* and distributes them across the given number of
11
11
child processes. Child processes are killed after a fixed number of items
12
12
(a * segment* ) in order to prevent them from slowing down over time.
@@ -103,7 +103,7 @@ Items
103
103
-----
104
104
105
105
The master process fetches all the items that need to be processed and passes
106
- them to the child processes through their Standard Input. Hence items must
106
+ them to the child processes through their Standard Input. Hence, items must
107
107
fulfill two requirements:
108
108
109
109
* Items must be strings
@@ -118,9 +118,9 @@ master process to the child process. Some typical examples for items:
118
118
Segments
119
119
--------
120
120
121
- When you run a command with multi-processing enabled, the items returned by
121
+ When you run a command with multiprocessing enabled, the items returned by
122
122
` fetchItems() ` are split into segments of a fixed size. Each child processes
123
- processes a single segment and kills itself after that.
123
+ process a single segment and kills itself after that.
124
124
125
125
By default, the segment size is the same as the batch size (see below), but you
126
126
can try to tweak the performance of your command by choosing a different segment
@@ -173,12 +173,12 @@ Hooks
173
173
The ` Parallelization ` trait supports more hooks than the one mentioned in the
174
174
last section. In the table below you can find a complete list of them:
175
175
176
- Method | Scope | Description
177
- ------------------------------------------- | ----------------- | ---------------------------------------------
178
- ` runBeforeFirstCommand($input, $output) ` | Master process | Run before any child process is spawned
179
- ` runAfterLastCommand($input, $output) ` | Master process | Run after all child processes have completed
180
- ` runBeforeBatch($input, $output, $items) ` | Child process | Run before each batch in the child process
181
- ` runAfterBatch($input, $output, $items) ` | Child process | Run after each batch in the child process
176
+ | Method | Scope | Description |
177
+ | -------------------------------------------| ----------------| ---------------------------------------------- |
178
+ | ` runBeforeFirstCommand($input, $output) ` | Master process | Run before any child process is spawned |
179
+ | ` runAfterLastCommand($input, $output) ` | Master process | Run after all child processes have completed |
180
+ | ` runBeforeBatch($input, $output, $items) ` | Child process | Run before each batch in the child process |
181
+ | ` runAfterBatch($input, $output, $items) ` | Child process | Run after each batch in the child process |
182
182
183
183
Authors
184
184
-------
@@ -206,4 +206,4 @@ All contents of this package are licensed under the [MIT license].
206
206
[ The Community Contributors ] : https://github.com/webmozarts/console-parallelization/graphs/contributors
207
207
[ issue tracker ] : https://github.com/webmozarts/console-parallelization/issues
208
208
[ Git repository ] : https://github.com/webmozarts/console-parallelization
209
- [ MIT license ] : LICENSE
209
+ [ MIT license ] : LICENSE.md_
0 commit comments