Jobby\BackgroundJob::shouldRun PHP Метод

shouldRun() защищенный Метод

protected shouldRun ( ) : boolean
Результат boolean
    protected function shouldRun()
    {
        if (!$this->config['enabled']) {
            return false;
        }
        if (($haltDir = $this->config['haltDir']) !== null) {
            if (file_exists($haltDir . DIRECTORY_SEPARATOR . $this->job)) {
                return false;
            }
        }
        $host = $this->helper->getHost();
        if (strcasecmp($this->config['runOnHost'], $host) != 0) {
            return false;
        }
        return true;
    }