Cronario\Manager::isProducerShutDown PHP Method

isProducerShutDown() protected method

protected isProducerShutDown ( ) : boolean
return boolean
    protected function isProducerShutDown()
    {
        if (!$this->getProducer()->isStateStart()) {
            $logger = $this->getLogger();
            $managerId = $this->getId();
            $logger->info("Manager {$managerId} catch daemon  shutdown, finish listening queue", [__NAMESPACE__]);
            return true;
        }
        return false;
    }