Task/Process/ProcessLauncherTask.php
public function flush(ProcessState $state)
    {
        while (\count($this->launchedProcesses) > 0) {
            $this->handleProcesses($state);
            sleep($this->getOption($state, 'sleep_on_finalize_interval'));
        }

        $state->setSkipped(true);
    }
public function flush(ProcessState $state)
    {
        while (\count($this->launchedProcesses) > 0) {
            $this->handleProcesses($state);
            sleep($this->getOption($state, 'sleep_on_finalize_interval'));
        }

        $state->setSkipped(true);
    }
@param ProcessState $state

@throws \InvalidArgumentException
@throws \Symfony\Component\OptionsResolver\Exception\ExceptionInterface
@throws \Symfony\Component\Process\Exception\RuntimeException