Skip to content

Commit

Permalink
Run with parallel runner only when 2 or more processes are needed
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Jun 21, 2022
1 parent ec1e8e7 commit 1687bcf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Command/AnalyserRunner.php
Expand Up @@ -12,6 +12,7 @@
use function array_filter;
use function array_values;
use function count;
use function function_exists;
use function is_file;

class AnalyserRunner
Expand Down Expand Up @@ -58,7 +59,7 @@ public function runAnalyser(

if (
!$debug
&& $allowParallel
&& $allowParallel && function_exists('proc_open')
&& $mainScript !== null
&& $schedule->getNumberOfProcesses() > 0
) {
Expand Down

0 comments on commit 1687bcf

Please sign in to comment.