public function __construct($runtimeTask, $closure, $options)
{
$this->runtimeTask = $runtimeTask;
$this->closure = $closure;
$this->options = $options;
$this->nodes = $this->loadNodes($options);
// Output info
if ($this->runtimeTask->getOutput()->isVerbose()) {
$this->runtimeTask->getOutput()->writeln("<info>Found</info> <comment>" . count($this->nodes) . "</comment> nodes: " . "" . trim(implode(", ", array_keys($this->nodes))));
}
if (!function_exists('pcntl_signal') || !function_exists('pcntl_fork') || !function_exists('pcntl_wait') || !function_exists('posix_kill')) {
$this->isParallel = false;
} else {
$this->isParallel = true;
}
}