Skip to content

Commit

Permalink
Rename PARALLEL_TIMEOUT_IN_SECONDS to PARALLEL_JOB_TIMEOUT_IN_SECONDS (
Browse files Browse the repository at this point in the history
  • Loading branch information
yguedidi committed Apr 17, 2023
1 parent 88fb0ac commit fbb472f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/Config/RectorConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function parallel(int $seconds = 120, int $maxNumberOfProcess = 16, int $
$parameters = $this->parameters();
$parameters->set(Option::PARALLEL, true);

$parameters->set(Option::PARALLEL_TIMEOUT_IN_SECONDS, $seconds);
$parameters->set(Option::PARALLEL_JOB_TIMEOUT_IN_SECONDS, $seconds);
$parameters->set(Option::PARALLEL_MAX_NUMBER_OF_PROCESSES, $maxNumberOfProcess);
$parameters->set(Option::PARALLEL_JOB_SIZE, $jobSize);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/Parallel/Application/ParallelFileProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function process(
$this->processPool->quitAll();
};

$timeoutInSeconds = $this->parameterProvider->provideIntParameter(Option::PARALLEL_TIMEOUT_IN_SECONDS);
$timeoutInSeconds = $this->parameterProvider->provideIntParameter(Option::PARALLEL_JOB_TIMEOUT_IN_SECONDS);

for ($i = 0; $i < $numberOfProcesses; ++$i) {
// nothing else to process, stop now
Expand Down
2 changes: 1 addition & 1 deletion src/Configuration/Option.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ final class Option
* @internal Use @see \Rector\Config\RectorConfig::parallel() instead with pass int $seconds parameter
* @var string
*/
public const PARALLEL_TIMEOUT_IN_SECONDS = 'parallel-timeout-in-seconds';
public const PARALLEL_JOB_TIMEOUT_IN_SECONDS = 'parallel-job-timeout-in-seconds';

/**
* @var string
Expand Down

0 comments on commit fbb472f

Please sign in to comment.