File tree 3 files changed +8
-8
lines changed
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ How it works
7
7
------------
8
8
9
9
When you launch a command with multiprocessing enabled (` --processes 2 ` ), a
10
- master process fetches * items* and distributes them across the given number of
10
+ main 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.
13
13
@@ -101,18 +101,18 @@ Processed 2768 movies.
101
101
Items
102
102
-----
103
103
104
- The master process fetches all the items that need to be processed and passes
104
+ The main process fetches all the items that need to be processed and passes
105
105
them to the child processes through their Standard Input. Hence, items must
106
106
fulfill two requirements:
107
107
108
108
* Items must be strings
109
109
* Items must not contain newlines
110
110
111
111
Typically, you want to keep items small in order to offload processing from the
112
- master process to the child process. Some typical examples for items:
112
+ main process to the child process. Some typical examples for items:
113
113
114
- * The master process reads a file and passes the lines to the child processes
115
- * The master processes fetches IDs of database rows that need to be updated and passes them to the child processes
114
+ * The main process reads a file and passes the lines to the child processes
115
+ * The main processes fetches IDs of database rows that need to be updated and passes them to the child processes
116
116
117
117
Segments
118
118
--------
Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ private function executeMainProcess(
278
278
/**
279
279
* Executes the child process.
280
280
*
281
- * This method reads the items from the standard input that the master process
281
+ * This method reads the items from the standard input that the main process
282
282
* piped into the process. These items are passed to runSingleCommand() one
283
283
* by one.
284
284
*/
@@ -414,7 +414,7 @@ private function createChildCommand(InputInterface $input): array
414
414
}
415
415
416
416
/**
417
- * Called whenever data is received in the master process from a child process.
417
+ * Called whenever data is received in the main process from a child process.
418
418
*
419
419
* @param string $buffer The received data
420
420
*/
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ protected static function configureParallelization(Command $command): void
80
80
* Typically, you will fetch all the items of the database objects that
81
81
* you want to process here. These will be passed to runSingleCommand().
82
82
*
83
- * This method is called exactly once in the master process.
83
+ * This method is called exactly once in the main process.
84
84
*
85
85
* @param InputInterface $input The console input
86
86
*
You can’t perform that action at this time.
0 commit comments