isRunning) { $this->error('Has start consumer'); return; } $process = new \Kafka\Consumer\Process($consumer); if ($this->logger) { $process->setLogger($this->logger); } $process->start(); $this->isRunning = true; if ($isBlock) { run(); } } }