Skip to content

Commit 17a2ea0

Browse files
authored
Remove references to "master" (#118)
1 parent 9ad06cf commit 17a2ea0

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ How it works
77
------------
88

99
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
1111
child processes. Child processes are killed after a fixed number of items
1212
(a *segment*) in order to prevent them from slowing down over time.
1313

@@ -101,18 +101,18 @@ Processed 2768 movies.
101101
Items
102102
-----
103103

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
105105
them to the child processes through their Standard Input. Hence, items must
106106
fulfill two requirements:
107107

108108
* Items must be strings
109109
* Items must not contain newlines
110110

111111
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:
113113

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
116116

117117
Segments
118118
--------

src/ParallelExecutor.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ private function executeMainProcess(
278278
/**
279279
* Executes the child process.
280280
*
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
282282
* piped into the process. These items are passed to runSingleCommand() one
283283
* by one.
284284
*/
@@ -414,7 +414,7 @@ private function createChildCommand(InputInterface $input): array
414414
}
415415

416416
/**
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.
418418
*
419419
* @param string $buffer The received data
420420
*/

src/Parallelization.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ protected static function configureParallelization(Command $command): void
8080
* Typically, you will fetch all the items of the database objects that
8181
* you want to process here. These will be passed to runSingleCommand().
8282
*
83-
* This method is called exactly once in the master process.
83+
* This method is called exactly once in the main process.
8484
*
8585
* @param InputInterface $input The console input
8686
*

0 commit comments

Comments
 (0)